Export (0) Print
Expand All

Form.MaximizedBounds Property

Gets and sets the size of the form when it is maximized.

[Visual Basic]
Protected Property MaximizedBounds As Rectangle
[C#]
protected Rectangle MaximizedBounds {get; set;}
[C++]
protected: __property Rectangle get_MaximizedBounds();
protected: __property void set_MaximizedBounds(Rectangle);
[JScript]
protected function get MaximizedBounds() : Rectangle;
protected function set MaximizedBounds(Rectangle);

Property Value

A Rectangle that represents the bounds of the form when it is maximized.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException The value of the Top property is greater than the height of the form.

-or-

The value of the Left property is greater than the width of the form.

Remarks

Notes to Inheritors:  Classes that inherit from Form can override this method to provide new bounds for the form when it is maximized. The class sets this property internally when the form's maximize box button is clicked.

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

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

Show:
© 2015 Microsoft