Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Chapter 2: Visual Basic Programming Concepts
Last change: February 13 2016 18:48:07.
<<PreviousNext>>

Completing the Development Cycle

All the aforementioned steps in revising the example program enable you to develop a working program. After a program is thoroughly tested and runs without any problem, it can be placed into production. As you may recall from Chapter 1, this should be the last step of the application (program) development cycle. In this step, the program is compiled into an executable file. From then on, you use the compiled version (the executable) to process live data. You will no longer need to use the IDE to run that program. Actually, when you test run your program, the IDE compiles and saves the executable file at the same time. You can use the Windows Explorer to browse down the path and find your Welcome02 folder. Below the folder, there is a Bin folder under which there is a Debug folder, which should contain the Welcome02.exe file.
So, how do you run the compiled program? The executable file will run in exactly the same way as all other executables. When you find it in the folder, double-click the icon to run. Alternatively, you can use the Run option of the Start menu to start the program. This will be similar to the way you run many of the setup programs when you install some software. If you would rather have the program appear in the Program submenu of the Start menu so that it can be run like some of your major applications such as Word, Excel, or VS 2008, you will need to create a shortcut in your system. The steps for both alternatives are described briefly next.
To run the Welcome executable using the Run option of the Start menu, follow these steps:

  1. Click the Start button on the desktop.
  2. Click the Run option to open the Run dialog box.
  3. Type the path of your Welcome02 executable into the Open combo box, or use the Browse button to find the Welcome02 executable.
  4. Click the OK button to run.

To add the Welcome02 executable to the Desktop, follow these steps:

  1. Right click on the desktop.
  2. Select New from the popup context menu.
  3. Select Shortcut from the submenu.
  4. Click the Browse button in the Create Shortcut dialog box to locate your Welome02.exe executable in the Debug folder.
  5. Click the Next button.
  6. Type a name for this shortcut (say, Welcome to VB) and click the Finish button.

Note that these steps assume the operating system is Windows XP; other operating systems will require different steps. The Windows Help file contains detailed information and step-by-step instructions.

Last change: February 13 2016 18:48:06.
<<PreviousNext>>