The strange thing is that no matter when I pop up the message box with WindowStyle [1] in it, it always says Normal. However, it seems like WinForms is using it as the style on the first window it creates, i.e. if I show the main form first, that will be normal, minimized or maximized. However, if I show a message box before showing the main form, the main form comes up normal. Strange.
Chris [1] System.Diagnostics.Process.GetCurrentProcess().StartInfo.WindowStyle ----- Original Message ----- From: "Marco Russo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 20, 2002 11:49 PM Subject: Re: [DOTNET] Fourth argument of WinMain in a WinForms application? 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.