Export (0) Print
Expand All
M
MinHeight, MinWidth Properties (Band Object)
Expand Minimize

Visual Basic Reference

Visual Studio 6.0

MaxButton Property

See Also    Example    Applies To

Returns a value indicating whether a form has a Maximize button.

Syntax

object.MaxButton

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Settings

The MaxButton property settings are:

Setting Description
True (Default) The form has a Maximize button.
False The form doesn't have a Maximize button.

Remarks

A Maximize button enables users to enlarge a form window to full-screen size. To display a Maximize button, you must also set the form's BorderStyle property to either 1 (Fixed Single), 2 (Sizable), or 3 (Fixed Double).

A Maximize button automatically becomes a Restore button when a window is maximized. Minimizing or restoring a window automatically changes the Restore button back to a Maximize button.

The settings you specify for the MaxButton, MinButton, BorderStyle, and ControlBox properties aren't reflected in the form's appearance until run time.

Note   Maximizing a form at run time generates a Resize event. The WindowState property reflects the current state of the window. If you set the WindowState property to 2 (Maximized), the form is maximized independently of whatever settings are in effect for the MaxButton and BorderStyle properties.

Show:
© 2014 Microsoft