NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Form.WindowState

The WindowState of the Form. Valid values are:

FormWindowState.Normal
    FormWindowState.Maximized
    FormWindowState.Minimized
[Visual Basic]
Public Property WindowState As FormWindowState
[C#]
public FormWindowState WindowState {get; set;}
[C++]
public: __property FormWindowState get_WindowState();
public: __property void set_WindowState(FormWindowState);
[JScript]
public function get WindowState() : FormWindowState;
public function set WindowState(FormWindowState);

Property Value

A FormWindowState that represents the window state of the form. The default is FormWindowState.Normal.

Remarks

Before a form is displayed, the WindowState property is always set to FormWindowState.Normal, regardless of its initial setting. This is reflected in the Height, Left, Top, and Width property settings. If a form is hidden after it's been shown, these properties reflect the previous state until the form is shown again, regardless of any changes made to the WindowState property in the meantime

See Also

Form Class | Form Members | System.WinForms Namespace | FormWindowState