System.Windows.Forms.Form.ClientSize Property

Gets or sets the size of the client area of the form.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Visible)]
public System.Drawing.Size ClientSize { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The size of the client area of the form is the size of the form excluding the borders and the title bar. The client area of a form is the area within a form where controls can be placed. You can use this property to get the proper dimensions when performing graphics operations or when sizing and positioning controls on the form. To get the size of the entire form, use the Form.Size property or use the individual properties Control.Height and Control.Width.

Note:

You cannot currently bind to this property using application settings. For more information on application settings, see Application Settings Overview.

Requirements

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