ControlBox Property

Applies To
Form

Description
Gets or sets a value indicating whether a control box is displayed in the caption bar of the form.

Usage

GGet Form.ControlBox, var  
GSet  Form.ControlBox, value  
Form
Name of a form or string variable containing a form name.
var
Boolean variable that will contain the value of the property.
value
Boolean expression for the new value of the property.

Values
False
True
Default: True

Remarks
If the ControlBox property is set to true, the control box is displayed in the upper-left corner of the form's title bar. The control box can be used to close the form.

See Also
Form, MaximizeBox, MinimizeBox

Example

GSet frmMain.ControlBox, False