System.Windows.Forms.Form.WindowState Property

Gets or sets a value that indicates whether form is minimized, maximized, or normal.

Syntax

[System.ComponentModel.DefaultValue(System.Windows.Forms.FormWindowState.Normal)]
public FormWindowState WindowState { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0
Since: .NET 2.0