MaxWidth Property

Applies To   See Also

Specifies the maximum width a form can be resized to. Available at design time and run time.

Syntax

Object.MaxWidth[ = nMaxWidth]

Settings

nMaxWidth

Specifies the maximum width a form can be resized to, in the unit of measurement specified by the ScaleMode property of the form.

Remarks

When the user sizes a form by choosing either the Size command from the Control menu or dragging the borders of the form, the form doesn't exceed the width specified in the MaxWidth property setting.

The default for the MaxWidth property setting is –1; no maximum width is specified.