WindowsForms has a WindowState property of the Form class. check it in properties during development or install it from code.
Edit: When starting a program from a shortcut, Windows can use the CreateProcess API, passing it the STARTUPINFO structure.
from your Windows Forms application, you get this structure as follows:
System.Diagnostics.Process.GetCurrentProcess().StartInfo
which contains the: WindowStyle property, and the values available to it are enumeration values:
System.Diagnostics.ProcessWindowStyle
So:
Hidden; Minimized; Maximized; Normal;
and that mapping in m_nCmdShow looking for OP.
Davide piras
source share