Chapter 5 Visual Basic Variables and Formulas, and the .NET Framework 129
- Click the Form1 .vb [Design] tab to display the form again.
- Double-click the Quit button.
The Button2_Click event procedure appears in the Code Editor.
- Type the following program statement to stop the program:
End
Your screen looks like this:
- Click the Save All button on the Standard toolbar to save your changes.
- Click the Start Debugging button on the Standard toolbar to run the program.
The program runs in the IDE.
- 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.