System.Windows.Forms.Form.MaximumSize Property

Gets the maximum size the form can be resized to.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(typeof(System.Drawing.Size), "0, 0")]
public override System.Drawing.Size MaximumSize { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property enables you to limit the size of a form to a specified maximum size. You can use this feature when displaying multiple windows at the same time, to ensure that a single window does not cause other windows to be hidden. If this property is set to a System.Drawing.Size object that is 0 in height and 0 in width, the form will have no maximum size beyond the limits set by Windows.

Requirements

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