Chapter 6. Using Decision Structures

After completing this chapter, you will be able to:

  • Write conditional expressions.

  • Use an If…Then statement to branch to a set of program statements based on a varying condition.

  • Use the MaskedTextBox control to receive user input in a specific format.

  • Short-circuit an If…Then statement.

  • Use a Select Case statement to select one choice from many options in program code.

  • Use the Name property to rename objects within a program.

  • Manage mouse events and write a MouseHover event handler.

In the past few chapters, you used several features of Microsoft Visual Basic 2008 to process user input. You used menus, toolbars, dialog boxes, and other Toolbox controls to display choices for the user, and you processed input by using ...

Get Microsoft® Visual Basic® 2008 Step by Step 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.