Trouble with Mono Winforms

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
hectorc

Trouble with Mono Winforms

Post by hectorc »

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());
	}
}
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
hectorc

Re: Trouble with Mono Winforms

Post by hectorc »

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

Return to “Software & Applications”