This documentation is archived and is not being maintained.
Form.MinimumSize Property
.NET Framework 1.1
Gets or sets the minimum size the form can be resized to.
[Visual Basic] Public Property MinimumSize As Size [C#] public Size MinimumSize {get; set;} [C++] public: __property Size get_MinimumSize(); public: __property void set_MinimumSize(Size); [JScript] public function get MinimumSize() : Size; public function set MinimumSize(Size);
Property Value
A Size that represents the minimum size for the form.
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentOutOfRangeException | The values of the height or width within the Size object are less than zero. |
Remarks
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.
Requirements
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
Show: