Writing and Running Your First Program

This exercise steps you through the process of creating the one-button calculator program shown in Figure 2-7. This is just about the simplest calculator you can imagine; it only knows how to add. The purpose of this example, however, isn’t to attack the advanced scientific and financial calculator business. Its main purpose is to introduce the overall process of creating programs with Visual Basic .NET.

Clicking the Add button adds the number in the left box to the total in the right box.

Figure 2-7. Clicking the Add button adds the number in the left box to the total in the right box.

To create this application, start Visual Studio and then proceed as follows:

  1. Open the New Project dialog box shown ...

Get Faster Smarter Beginning Programming now with O’Reilly online learning.

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