Specifies whether a form has a Maximize button; read-only at run time.
The MaxButton property settings are:
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 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. when a window is maximized.
The settings you specify for MaxButton, MinButton, BorderStyle, and ControlBox are not reflected in the form's appearance until run time.
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. appears with a Maximize button regardless of the MaxButton setting.
Note Maximizing a form at run time generates a Resize 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. event.