System.Windows.Forms.Control.DefaultSize Property

Gets the default size of the control.

Syntax

protected virtual System.Drawing.Size DefaultSize { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Control.DefaultSize property represents the System.Drawing.Size of the control when it is initially created. You can adjust the size of the control by setting its Control.Size property value.

Note:

To maintain better performance, do not set the System.Drawing.Size of a control in its constructor. The preferred method is to override the Control.DefaultSize property.

Note:

On Windows Server 2003 systems, the size of a System.Windows.Forms.Form is restricted by the maximum pixel width and height of the monitor.

Requirements

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