
ECE 5800
Severance
Saving Visual Basic File to a Flash Drive
Visual Basic projects can contain several files. These include form files, module files, a
project file and perhaps an executable file. Since a VB project needs to have all of these elements in
order to run, they are all kept connected together and linked by Visual Basic. If this is not done
correctly, problems can develop trying to copy them to an external memory device. Here is a
procedure that will assist you in creating the project on your computer, then copying it to submit for
this course.
1. Before entering Visual Basic create a folder for that project resident on the hard drive. This
will allow you to develop the VB program on your native system and can therefore be done
quickly. Name the folder Project and the number of the assignment, such as Project01.
2. Enter Visual Basic and start to develop the form. As soon as you have a component or two on
the form, Save the Form in the folder created in step 1. After doing this, Save the Project in
the same folder. These steps use the Save Form As... and Save Project As... options given
under the File menu choice.
a. Select File
b. Select Save form As (this will have the name you have given the form)
c. Find the folder you created for the project in the Save In box
d. Name the Form File so that it includes the assignment number such as frmAssign01.
e. Press the Save button.
f. Select File
g. Select Save Project As
h. Find the folder you created for the project in the Save In box
i. Name the project file and the assignment number such as prjAssign01.
j. Press the Save button.
3. After this use Save Project as you work. This will continue to update both your form and
project files automatically. If you start a new project, do Remove Project from the File menu
first to close the current project. Otherwise you may accidently end up with Visual Basic
thinking that the old form belongs to the new project.
4. Once you are finished developing and testing your VB program, exit Visual Basic and copy
the entire folder to your flash memory device. Do not attempt to copy each file individually!
This should be done from My Computer.
a. Go through the folders until you find the folder for the assignment. DO NOT OPEN
THE FOLDER.
b. Highlight the folder.
c. Press the right mouse button
d. Select copy from under the edit menu.
e. Navigate over to the drive controlling your external storage and paste it on the device.
f. Using My Computer or Explorer, look at the external drive or diskette. In the folder
there should be at least two files for most of the projects. Some of your later projects
will have more.
5. To be on the safe side, use a completely different computer with Visual Basic installed to see if
your program still works!