Microsoft Visual Basic 2010 Step by Step eBook

(Tina Meador) #1

Chapter 5 Visual Basic Variables and Formulas, and the .NET Framework 129



  1. Click the Form1 .vb [Design] tab to display the form again.

  2. Double-click the Quit button.


The Button2_Click event procedure appears in the Code Editor.


  1. Type the following program statement to stop the program:


End
Your screen looks like this:


  1. Click the Save All button on the Standard toolbar to save your changes.

  2. Click the Start Debugging button on the Standard toolbar to run the program.


The program runs in the IDE.


  1. Click the Show button.


The program declares the variable, assigns two values to it, and copies each value to
the appropriate label on the form. The program produces the output shown in the
following screen shot.
Free download pdf