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.
CheckBox
The CheckBox control supports the following properties:
The CheckBox control supports the following methods:
The CheckBox control supports the following events:
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.