Using a CheckBox

A checkbox is used to allow the user to choose an option using a true/false or yes/no type of box. The CheckBox control is similar to the RadioButton control, except that each checkbox can be checked or unchecked individually without affecting another checkbox.

In the program StylesOfGreetings\Step 2, we will display a standard greeting unless the user checks the personalize button and enters a name. To do this, we made some small changes to the form's appearance. Figure 7-29 illustrates the form's new design-time appearance.

Figure 7-29. Using the CheckBox control to provide options.

Additional properties that were set in this ...

Get Application Development Using Visual Basic® and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.