CheckBox Control

This control contains one or more items that appear checked when selected. Check boxes commonly are used to present a Yes/No or True/False choice to the user.

Syntax

CheckBox

The CheckBox control supports the following properties:

Alignment FontStrikethru Style
Appearance FontUnderline TabIndex
BackColor, ForeColor FontName TabStop
Caption FontSize Tag
Container Height Value
Enabled HWnd Visible
Font Left Top Width
FontBold Name  
FontItalic Parent  

The CheckBox control supports the following methods:

The CheckBox control supports the following events:

Remarks

The Value property of the CheckBox control indicates whether the check box is selected, cleared, or unavailable (dimmed). The following table lists the values that correspond to the state of the check box.

Setting
Value
Clear 0
Selected 1
Unavailable 2

By default, the CheckBox control is set to 0. If you want to preselect several check boxes in a series of check boxes, set the Value property to 1 in the Form_Load or Form_Initialize procedures. You also can set the Value property to 2 to disable the check box.