Presenting Yes/No Options Using Check BoxesA check box is used to display True/False and Yes/No values on a form, and you've probably run into many of them as you've worked with different Windows applications. Clicking the check box control toggles it between checked and unchecked (True/false, yes/no, and so on). Add a new check box to the Options form now and set its properties as follows:
The CheckState property of the check box determines whether the check box is checked. Try changing the value of this property and watch the effect on the form. Notice that you can set the check box's CheckState to Indeterminate, which shows a big square in the control. You won't often need to use this, but it's good to know the feature is available. Be sure to set the CheckState to Unchecked before continuing. Your form should now look like Figure 7.8. Figure 7.8. Use the check box to indicate a True/false or yes/no state.
|