Returns a value that determines whether a form has a Maximize button.
[ bMaxButton = ] Object.MaxButton
The MaxButton property syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
bMaxButton |
Bool |
A boolean expression that specifies whether a form has a Maximize button. |
bMaxButton can be one of the following:
Value |
Description |
True * |
The form has a Maximize button. |
False |
The form does not have a Maximize button. |
The Maximize button enables users to increase the size of the form window to fill the full size of the screen.
For the Maximize button to be visible, the form's BorderStyle property must be set to something other than "None". When a window is maximized, the Maximize button becomes a Restore button. Minimizing or restoring a window automatically changes the Restore button back to a Maximize button.
The settings for the MaxButton, MinButton, BorderStyle, and ControlBox properties are displayed on the form at run time. This property can be set at design time and is read-only at run time.
Note: Maximizing a form at run time generates an OnResize event. The WindowState property reflects the current state of the window. If the WindowState property is set to "Maximized", the form is maximized independently of the settings for the MaxButton and BorderStyle properties.
This property is not for MDIForm objects.
The following statement returns True if the max button is available for the form:
bMaxButton = frm1.MaxButton
BorderStyle, ControlBox, MinButton, OnResize, WindowState