Trouble with Mono Winforms

Questions about applications and software
Forum rules
Before you post please read how to get help
hectorc
Level 1
Level 1
Posts: 2
Joined: Fri Jan 18, 2013 11:42 am

Trouble with Mono Winforms

Postby hectorc » 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

Re: Trouble with Mono Winforms

Postby hectorc » 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 228 times


Return to “Software & Applications”

Who is online

Users browsing this forum: annevejb, doro, Mik3e and 13 guests