ControlBox Property

Applies To   See Also

Specifies whether a pop-up menu icon appears in the upper-left corner of a form or toolbar at run time. Available at design time and run time.

Syntax

Object.ControlBox[ = lExpr]

Settings

lExpr

The settings for the ControlBox property are:

Setting Description
True (.T.) (Default) Displays a pop-up menu icon.
False (.F.) Does not display a pop-up menu icon.

Remarks

Both modal and modeless forms and toolbars can include a pop-up menu icon. The menu commands available at run time depend on the settings for related properties. For example, setting MaxButton and MinButton to false (.F.) disables the Maximize and Minimize menu commands on the pop-up menu, but the Move and Close menu commands remain available.

Note   Settings you specify for ControlBox, BorderStyle, MaxButton, and MinButton are not reflected in the form's appearance until run time.