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

Get Microsoft® Visual Basic® 2010 Step by Step now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.