Visual Basic Application Files
Visual Basic Application Files
A Visual Basic application, called a solution, can consist of one or more projects.
Since all of the solutions in this text have only one project, you can think
of one solution _ one project. Each project can contain one or more form files.
In Chapters 1 through 5, all projects have only one form, so you can think of
one project _ one form. Starting in Chapter 6, your projects will contain multiple
forms and additional files. As an example, the HelloWorld application that
you will create later in this chapter creates the following files:
File Name File Icon Description
HelloWorld.sln The solution file. A text file that holds
information about the solution and the projects
it contains. This is the primary file for the
solutionthe one that you open to work on or
run your project. Note the 9 on the icon,
which refers to VB version 9.
HelloWorld.suo Solution user options file. Stores information
about the state of the integrated development
environment (IDE) so that all customizations
can be restored each time you open the
solution.
HelloForm.vb A .vb file that holds the code procedures that
you write. This is a text file that you can open
in any editor. Warning: You should not modify
this file unless you are using the editor in the
Visual Studio environment.
HelloForm.resx A resource file for the form. This text file defines
all resources used by the form, including strings
of text, numbers, and any graphics.
8 V I S U A L B A S I C Introduction to Visual Basic 2008
The full version of Visual Studio 2008 provides an option to allow the programmer
to select the default profile for the IDE. The first time you open Visual
Studio, you are presented with the Choose Default Environment Settings dialog
box (Figure 1.3), where you can choose Visual Basic Development Settings.
Notice the instructions in the dialog box: you can make a different selection
later from the Tools menu.
Note: If you are using the Express Edition of Visual Basic, you wont see
Note: You can display file extensions. In Windows Vista, open the Explorer
and select Organize / Folders and Search Options, click on the View tab, and deselect
the check box for Hide extensions for known file types. In Windows XP, in the
My Computer Tools menu, select Folder Options and the View tab, Deselect the
check box for Hide extensions for known file types. If you do not display the extensions,
you can identify the file types by their icons.
After you run your project, you will find several more files created by the system.
These include the AssemblyInfo.vb, MyApplication.myapp, MyEvents.vb,
Resources.resx, and Resources.vb. The only file that you open directly is the
.sln, or solution file.