File Management for Visual Basic Projects
Put every Visual Basic project into its own separate folder. Create a new
folder ( a new name) for each revision. Make your names meaningful.
- Most projects start out with a generic name of "Project1." Click on
the line in the Project Window that says Project (Project1) Go down to the
properties window, and rename Project1 to something that is appropriate
for that task.
- Click the Save BUTTON. Do not go to the File menu. Clicking the Save
button will bring up a dialog box titled "Save File As" and will require
you to name the form file. I suggest that you name the form using the same
name as the project.
- Be sure to tell Visual Basic WHERE you want to save the project, in
the folder that you have created for it.
- When you click Save, your form is saved with the name you gave it, and
an extension ".frm"
- Then, another window opens where you will save the project files. Do
so using the same filename and in the same folder. VB will add the ".vbp"
- When you want to exit the project, you will be asked if you want to
save changes. Say yes, because at this time VB will make a third file, the
- When working on the hard drive, follow these directions, too. Be sure
you know where your files are, and that you have them all in the same
folder. When you want to transfer something to a floppy to have at
school, just copy the whole folder, making sure that all three files
are in the folder.
- Whatever you do, do not just drag files into a folder. The project
file "remembers" where the form file was originally located. The .vbw file
has recorded the path to the original forms and folders. Make sure the
files are saved into the same folder. You can do "Save Project As" and
"Save Form As" from the File menu to see where they are, and then cancel
the "Save As" if they are OK. If the form file is not in the same folder
as the project file, then use the "Save form As" command to put the form
file into the right place.