Home > Articles > Programming > Visual Basic

  • Print
  • + Share This
This chapter is from the book

Running a Project

Your application is now complete. Click the Save All button on the toolbar (the button with two floppy disks), and then run your program by pressing F5. You can also run the program by clicking the button on the toolbar that looks like a right-facing triangle and resembles the Play button on a DVD player and has the label Start. (This button can also be found on the Debug menu.) Learning the keyboard shortcuts will make your development process move along faster, so I recommend that you use them whenever possible.

When you run the program, the Visual Basic interface changes, and the form you’ve designed appears, floating over the design environment (see Figure 1.14).

FIGURE 1.14

FIGURE 1.14 When in Run mode, your program executes just as it would for an end user.

You are now running your program as though it were a standalone application running on another user’s machine; what you see is exactly what users would see if they ran the program (without the Visual Studio 2015 design environment in the background, of course). Click the Select Picture button to display the Select Picture dialog box, shown in Figure 1.15. Use this dialog box to locate a picture file. When you’ve found a file, double-click it, or click once to select it and then click Open. The selected picture is then displayed in the picture box, as shown in Figure 1.16.

FIGURE 1.15

FIGURE 1.15 The OpenFileDialog control handles all the details of browsing for files. Cool, huh?

FIGURE 1.16

FIGURE 1.16 Displaying pictures is easy if you know just a few techniques.

  • + Share This
  • 🔖 Save To Your Account