Gets or sets the size of the client area of the form.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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 Size property or use the individual properties Height and Width.
You cannot currently bind to this property using application settings. For more information on application settings, see Application Settings Overview.
The following code example creates an event handler for the Resize event of a form. The event handler uses the property of the form to make a Button control named button1 fill the entire client area of the form.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.