Know a good article or link that we're missing? Submit it!
*/
*/

WinForm FAQ - Specifying the Startup Window State of a Form

What does it mean by Startup Window State of the form? How do I set the startup window state of the form?

The startup window state specifies whether the form should be displayed in normal, maximized or minimized state. It can be set using the WindowState property of the form. The data type of this property is System.Windows.Forms.FormWindowState enumeration, which has three members; Maximized, Minimized and Normal.

C# Version

myForm.WindowState = FormWindowState.Maximized;

VB.NET Version

myForm.WindowState = FormWindowState.Maximized
Index
corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.
Resource Listings