Selecting Individual Options with Checkboxes
A CHECKBOX indicates whether a particular condition is on or off. You use CHECKBOXes in an application to give users true/false or yes/no options. Because CHECKBOXes work independently of each other, a user can select any number of CHECKBOXes at the same time.
When you set a CHECKBOX, the check box's Value property is set to one(1). When unchecked, its Value property is set to zero (0). The default Value is zero, so unless you change Value, the check box will be unchecked when it is first displayed.
The Click event for the CHECKBOX occurs as soon as you click the box. The event routine may then test to see whether the CHECKBOX has been selected or cleared and take the appropriate action. Note that the default action performed by the runtime is to toggle the value between zero and one. If you specify your own event routine, you will be required to toggle the value.
![]() |