How to Run a Visual Basic Program on a PC
an eHow Contributor
Like C++, C Sharp and Java, Visual Basic (VB) is
an object oriented programming language. Recently it was integrated to
the Microsoft .NET Framework. The .NET Framework is a software
infrastructure that speeds up program development. It is supported by
the Microsoft Visual Studio Integrated Development Environment (IDE), Microsoft's chief programming environment, and that of SharpDevelop.
Things You'll Need:
Visual Microsoft Studio and .NET Framework
Launch your Microsoft Visual Studio. It is a "heavy" application so depending on how much RAM you have it may take a few minutes to load.
Click the Project tab on the first screen. Notice two buttons
at the bottom of the screen named "New Project" and "Open Project."
Since the tutorial assumes that this is your first VB program, click the
"New Project" button. If you worked on a project before, its name will
appear in an area labeled "Open an Existing Project" with a hyperlink
that opens the project.
Select "Windows Application" in the "Visual Basic Projects" folder if you intend to run your end program on a computer running a Microsoft Windows operating system.
Focus in the "Name" text box near the bottom. Change the name from the
default to something more descriptive such as "MyFirstVBProgram." Leave
the Location to the default value to save your project to the "My
Documents" folder. Press OK.
Concentrate on the grey square area with the arrays of dots.
This is the "form." The pinboard shows where components like buttons and
text boxes will be installed to make a complete graphic user interface
(GUI). The purpose of the grid is to align the components.
Run your program. Click "Debug" from the menu bar. Click
"Start" from the drop down menu. Alternatively, you can press F5 on your
Enjoy your first Visual Basic program in its simplest form.
It is identical to the form in Step 4 except that the dots are gone.
What you are looking at is a stand alone program that exists as an
".exe" file having the same name as your project. You can find it under
the MyFirstVBProgram folder by default.
Understand the difference between the two distinct
environments of the IDE, the Design Environment and the Debug
Environment. You saw the Design Environment in Step 4 of this tutorial.
That was the environment where you could design a GUI on the form using
your mouse. The Debug Environment takes over during the compilation
interval in Step 5. That is where you can insert break points in your
source code so that you test the correctness of the program.
Read more: How to Run a Visual Basic Program on a PC ' eHow.com http://www.ehow.com/how_2072757_run-visual-basic-program-pc.html#ixzz17b5EMirN