Returns or sets whether the object is unchecked, checked, or dimmed.
Object.Value [ = enValue ]
The Value property syntax has the following parts:
Part |
Type |
Description |
Object |
ACheckBox |
ACheckBox control |
enValue |
enumACheckBoxValue |
An integer specifying whether the control is checked or unchecked. |
enumACheckBoxValue can be one of the following:
Name |
Value |
Description |
achkUnchecked |
0* |
The control is not checked. |
achkChecked |
1 |
The control is checked. |
achkGrayed |
2 |
The control is dimmed. |
The following statement changes the ACheckBox to set the checkmark box to be unchecked (blank):
cb1.Value=achkUnchecked