See Also
Applies To
Form.
Description
Specifies whether a form has a Maximize button
Usage
[form.]MaxButton
Setting
The MaxButton property settings are:
Setting Description
True (Default) The form has a Maximize button.
False The form does not 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) or 2 (Sizable).
A Maximize button automatically becomes a Restore button Minimizing or restoring a window automatically changes the Restore button back to a Maximize button.
The settings you specify for MaxButton, MinButton
In Microsoft Windows version 3.0, an MDI child form 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 Resize 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.
Data Type
Integer (Boolean)
Help:
ControlBox Property
MinButton Property