This documentation is archived and is not being maintained.

Form.MinimumSize Property

Gets or sets the minimum size the form can be resized to.

[Visual Basic]
Public Property MinimumSize As Size
public Size MinimumSize {get; set;}
public: __property Size get_MinimumSize();
public: __property void set_MinimumSize(Size);
public function get MinimumSize() : Size;
public function set MinimumSize(Size);

Property Value

A Size that represents the minimum size for the form.


Exception Type Condition
ArgumentOutOfRangeException The values of the height or width within the Size object are less than zero.


This property enables you to limit the size of a form to a specified minimum size. You can use this feature to prevent a user from sizing a window to an undesirable size. If this property is set to a Size object that is 0 in height and 0 in width, the form will have no minimum size beyond the limits set by Windows.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Form Class | Form Members | System.Windows.Forms Namespace