MaxButton Property

See Also3N7BUZX

Applies To



Specifies whether a form has a Maximize buttonBWJUIC; read-only at run time.




The MaxButton property settings are:

Setting             Description


True                 (Default) The form has a Maximize button.

False                The form does not have a Maximize button.



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 BorderStyle43RNRL property to either 1 (Fixed Single) or 2 (Sizable).

A Maximize button automatically becomes a Restore button11PTOVW 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 MaxButton, MinButton1B9HLHD, BorderStyle, and ControlBox35ZQLA are not reflected in the form's appearance until run time.

In Microsoft Windows version 3.0, an MDI child formEXWLAX appears with a Maximize button regardless of the MaxButton setting.  However, if MaxButton is False, the Maximize button does not respond to mouse clicks and the Maximize command is not on the form's Control-menu box.


Note   Maximizing a form at run time generates a Resize2WM7WLP event.  The WindowStateI5APPB 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.


Data Type

IntegerDOKXHY (Boolean)

See Also


ControlBox Property35ZQLA

MinButton Property1B9HLHD