O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required