Visual Basic Concepts

Project File (.vbp) Format

Visual Basic always saves project files (.vbp) in ASCII format. The project file contains entries that reflect settings for your project. These include the forms and modules in your project, references, miscellaneous options that you have chosen to control compilation, etc.

Here is what a .vbp file might look like. This project includes modules saved with the class and file and names shown in the table below.

Module type Class name File name
MDI form Aform A_Form.frm
Form Bform B_Form.frm
Standard module Cmodule C_Module.bas
Class module Dclass D_Class.cls
Type=Exe
Form=B_Form.frm
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\WINDOWS\SYSTEM\STDOLE2.TLB#OLE Automation
Form=A_Form.frm
Module=CModule; C_Module.bas
Class=DClass; D_Class.cls
Startup="BForm"
Command32=""
Name="Project1"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
VersionCompanyName="Microsoft"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
ThreadPerObject=0
MaxNumberOfThreads=1

Entries are added to the .vbp when you add forms, modules, components, etc. to your project. Entries are also added when you set options for your project. Many of these options are set using the Project Properties dialog box.

For More Information   Press F1 to get explanations of the options that can be chosen in the Project Properties dialog box.