Export (0) Print
Expand All
C
Col, Row Properties
ColWordWrapOption Properties
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

Visual Basic Reference

Visual Studio 6.0

ControlBox Property

See Also    Example    Applies To

Returns or sets a value indicating whether a Control-menu box is displayed on a form at run time. Read-only at run time.

Syntax

object.ControlBox

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Settings

The ControlBox property settings are:

Setting Description
True (Default) Displays the Control-menu box.
False Removes the Control-menu box.

Remarks

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.