clientWidth

Type: Integer

Availability: Read or write at run time only

The clientWidth property of the Form class contains the width of the client area of a form in pixels. The client area of a form is the area inside the borders, caption, menu bar, or scroll bars where controls can be placed.

The position of child controls is relative to the top left of this client area.

This property can also be used to set the width of the client area of a form in pixels, by changing the value of this property. Changing this property resizes the form so that the client area sizes match the specified value. The clientWidth property can be useful when using graphical methods and changing the scaleMode property of a form.

The value of the clientWidth property is the same as that of the scaleWidth property when the scaleMode property value of a form is pixels. See also the clientWidth method for controls.