Returns whether a Control-menu box is displayed in the title bar of the form.
[ bControlBox = ] Object.ControlBox
The ControlBox property syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
bControlBox |
Bool |
A boolean expression that specifies whether a Control-menu box is displayed in the title bar of the form. |
bControlBox can be one of the following:
Value |
Description |
True * |
The form displays the Control-menu box in the titlebar. |
False |
The form does not display the Control-menu box in the titlebar. |
For the ControlBox menu to be visible, the form's BorderStyle property must be set to something other than "None".
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.
This property is not available for MDI Form type which uses the Sizable style by default.
The commands which will be displayed at run time depend on the settings for related properties. For example, setting MaxButton and MinButton to False disables the Maximize and Minimize commands on the Control menu, but the Move and Close commands remain available.
The following is what the AForm looks like with the ControlBox property set to True:
The following is what the AForm looks like with the ControlBox property set to False:
The following statement returns the AForm ControlBox property:
bFrm1ControlBox = frm1.ControlBox
BorderStyle, MaxButton, MinButton