CHAPTER 6 MAKING DECISIONS WITH (Web site builder) CONDITIONAL LOGIC

CHAPTER 6 MAKING DECISIONS WITH CONDITIONAL LOGIC 167 Note A RadioButton control is used to present users with a choice between two options. By default, all RadioButton controls on a window function as a group, meaning only one RadioButton can be selected at a time. By grouping RadioButton controls together, using the GroupBox control as an example, you can create separate groupings of RadioButton controls, each of which is independent of other groups. You can use the Properties window to specify a default RadioButton selection by enabling the Value property for one of the RadioButton controls in a grouping. Programmatically, you can change the currently selected RadioButton by setting its Value property to True. Similarly, you can check to see if a RadioButton control s Value property has been set, as the previous example shows. As you can see, two If Then blocks are set up. The first If Then block checks to see if the Value property belonging to the first RadioButton control is set to True (for example, that it has been selected). If it was selected, then the next statement executes and sets the BackColor property of the window to Yellow. The second If Then block performs a second test, this time looking to see if the value of the second RadioButton control was selected. Figure 6-2 demonstrates how the selection of the RadioButton labeled Yellow changes the window s background color. Figure 6-2. Using If Then blocks to process the value of RadioButton controls
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

Leave a Reply