This documentation is archived and is not being maintained.

Form.MaximizedBounds Property

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

[Visual Basic]
Protected Property MaximizedBounds As Rectangle
protected Rectangle MaximizedBounds {get; set;}
protected: __property Rectangle get_MaximizedBounds();
protected: __property void set_MaximizedBounds(Rectangle);
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.


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


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


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.


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