I have a C# Windows Form application lauching an instance of a form upon execution using the default code:
[STAThread]
static void Main () {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
If I use the default value "Normal" for WindowState property on Form1, I'm able to create a shortcut for the application and set the Run property to Normal, Minimized or Maximized and it's gonna be respected.
However, if the application is NOT run through a shortcut, I want it to be maximized, by default. But if I set WindowState property to Maximized, the shortcut's Run property is no longer respected at all.
Is there a way to handle both cases?
Thanks.