Trouble with Mono Winforms

Questions about applications and software
Forum rules
Before you post please read this

Trouble with Mono Winforms

Postby hectorc on Fri Jan 18, 2013 11:48 am

Hi,

I wrote a C# program inside Monodevelop.
But when I run it the window won't show immediately - I have to minimize then restore it to get it to appear.

Does anyone know how I may go about solving this? Thanks

Code: Select all
using System.Windows.Forms;

public class TestForm : Form
{
   public TestForm()
   {
      Text = "Hello";
      WindowState = FormWindowState.Maximized;
   }
   public static void Main()
   {
      Application.Run(new TestForm());
   }
}
hectorc
Level 1
Level 1
 
Posts: 2
Joined: Fri Jan 18, 2013 11:42 am

Linux Mint is funded by ads and donations.
 

Re: Trouble with Mono Winforms

Postby hectorc on Fri Jan 18, 2013 11:58 am

Sometimes the window shows but is really tiny in the top left hand corner.

mono.png
mono.png (73.37 KiB) Viewed 128 times
hectorc
Level 1
Level 1
 
Posts: 2
Joined: Fri Jan 18, 2013 11:42 am


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 14 guests