The unmanaged API is GetStartupInfo(). The managed way is: Process.GetProcess().StartInfo.WindowStyle. I've not found a Windows Forms correspondent API...
Marco -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Chris Sells Sent: martedì 21 maggio 2002 0.47 To: [EMAIL PROTECTED] Subject: [DOTNET] Fourth argument of WinMain in a WinForms application? Where can I get the nCmdShow argument from WinMain in a WinForms app? Chris Sells http://www.sellsbrothers.com/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.