Chapter 7. Using Loops and Timers

After completing this chapter, you will be able to:

  • Use a For … Next loop to execute statements a set number of times.

  • Display output in a multiline text box by using string concatenation.

  • Use a Do loop to execute statements until a specific condition is met.

  • Use the Timer control to execute code at specific times.

  • Create your own digital clock and timed password utility.

  • Use the Insert Snippet command to insert ready-made code templates or snippets into the Code Editor.

In Chapter 6 you learned how to use the If … Then and Select Case decision structures to choose which statements to execute in a program. You also learned how to process user input and evaluate different conditions in a program and how to determine which ...

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.