Partager via


ControlBox Property

Specifies whether a program icon appears in the upper-left corner and whether Minimize, Maximize, Restore, and Close buttons appear in the upper-right corner of a form. In the case of Toolbars the ControlBox Property controls the appearance of only the Close button. Available at design time and run time.

Object.ControlBox[ = lExpr]

Return Value

  • lExpr
    The settings for the ControlBox property are:

    Setting

    Description

    True (.T.)

    (Default) Displays a program icon.

    False (.F.)

    Does not display a program icon.

Remarks

Applies To: Form Object | _SCREEN System Variable | ToolBar Object

Both modal and modeless forms and toolbars can include a program 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 program icon, but the Move and Close menu commands remain available.

See Also

Reference

BorderStyle Property

Closable Property

MaxButton Property

MinButton Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)