File Management for Visual Basic Projects

  1. Put every Visual Basic project into its own separate folder. Create a new folder ( a new name) for each revision. Make your names meaningful.
  2. 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.
  3. 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.
  4. Be sure to tell Visual Basic WHERE you want to save the project, in the folder that you have created for it.
  5. When you click Save, your form is saved with the name you gave it, and an extension ".frm"
  6. 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" extension.
  7. 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 .vbw file
  8. 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.
  9. 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.