Visual Basic Reference
Returns or sets a value indicating whether a Control-menu box is displayed on a form at run time. Read-only at run time.
The object placeholder represents an object expression that evaluates to an object in the Applies To list.
The ControlBox property settings are:
|True||(Default) Displays the Control-menu box.|
|False||Removes the Control-menu box.|
To display a Control-menu box, you must also set the form's BorderStyle property to 1 (Fixed Single), 2 (Sizable), or 3 (Fixed Dialog).
Both modal and modeless windows can include a Control-menu box.
The commands available 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.
Note Settings you specify for the ControlBox, BorderStyle, MaxButton, and MinButton properties aren't reflected in the form's appearance until run time.