| Chapter 3- Data Types and Operators | Boolean Expressions Page 2 3 4 |
| The If Statement Page 2 3 4 5 6 7 8 9 | |
| Arithmetic Operations Page 2 3 4 5 6 | Boolean Operators and Nested If Statements Page 2 3 4 5 6 7 |
| Events and Sequential Processing Page 2 3 4 5 | More Examples Page 2 3 4 5 6 7 8 9 10 11 12 |
| Datatypes and Conversions Page 2 3 4 5 6 7 | Using Check Box and Option Controls Page 2 3 4 5 6 7 8 9 10 |
| Variable Declarations - Local and Global Page 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Exercises Page 2 3 4 5 6 7 8 |
| Chapter 4- Selection Statements | Review Questions |
| Introduction | |
4-7: Check Box and Option Controls
Exercise 4-6: Global Classics Cinema continued ...
Now that the movie times groupbox is visible the user will select one of those times. No matter which one is selected you want to enable the checkboxes for the ticket types, since slecting one or more of those will be the next action a user will want to take.
Thus again a single Sub should handle the CheckedChanged events for all of the radio buttons in the movie times groupbox.
As before this is implemented by writing:
Private Sub rdoTime_Chosen(ByVal sender As System.Object, _Now, after the user has selected any movie time the checkboxes will be enabled allowing them to select one or more of the ticket types.
However, it is possible that the user might go back and change which movie they selected, (actually they might do this at any time) or perhaps change which time they selected (also at any time). In terms of controlling and guiding the user actions you should consider what to do if the user does select a different movie or different time. In the case of selecting a different movie perhaps the ticket type checkboxes should be disabled and any selection of a movie time radio button removed, essentially forcing the user to start again. How would you program this?