How to Create a VB Project AuxiliaryFiles program…-



Apologies: This video was created using VB2008. Some of the screens will not match those in VB2010. You should still be able to make sense out of the screens and cautions

Watch the video and/or use the instructions below.

NOTE: These videos were created using Vb2008. We are now using VB2011. After the opening screens, they are the same. You will need to make some educated guesses to get through the beginnings of the videos.

CS113 Visual BASIC: Create your AxillaryFiles project.  This standard project is the project from which you will create all other programs for the course.

Survival rule: NEVER save anything to the “C” drive or use the default location to save your work. You can use a flash drive but the tutorial will relate to the school M drive. During this pathfinder, you will create a folder on your M drive named CS113Fall11 and in that folder will be a folder called Programs. This Programs folder is where you will store your work for this course.

—————————————————————————————
A) Create your AuxiliaryFiles Project. Starting this standard project should be be the only time that you ever open Visual BASIC by double clicking on the VB icon.

1) Double click the VB icon.

2) Click on File, New Project (or hit N). Click on Window and select reset Window Layout and click Yes.

3) Replace “WindowsApplication” in the Name textbox with “AuxiliaryFiles” (one word, no spaces, note use of caps). If three text boxes show in the bottom pane, enter M:CS113Fall11projects in the top and the bottom one will change automatically. If only one shows, don’t worry about it. You will see this later. Click “OK” and see that “AuxiliaryFiles” appears at the top of the window.

4) Right Click on “Form1.vb” in the Solution Explorer pane and rename it to “AuxiliaryFiles.vb”

————————————————————————————
5) Drag lower right corner of the form image to stretch the form larger.
6) Click on the Toolbar tab in the upper left-side margin.

7) Click on the Common Control, if necessary, to see the list of objects.
.8) Double click on “Button” and a button object will appear on your form.
9) Drag the button to the lower right of the form.
10 Drag a corner handle of the button to make it larger in both height and width.
11) Click the button once, See that the properties pane for the button is present.
12) Use the Properties slide bar button to find the Text attribute
13) Highlight “Button1” and change it to “E&xit”  (Yes with the ampersand)

14) Click once on the button to accept the change.
—————————————————————————————
15) Scroll up Properties scroll bar slide button and find the “(name)” attribute near the top. Change Button1 to “btnExit”. (no ampersand here)

16) Click once on the form to accept the change.
17) Double click on the button to open the Code Window.
18) Place “End” between “Private Sub” and “End Sub” commands and then click anywhere else.

19) Return to the form with a click on View, Designer in the project control bar near the top of the VB window. (or Hold & then press F7, or double click on the blue AuxiliaryFiles.vb icon in Solution Explorer).
.. ————————————————————————————–.
20) Click on the “X” in the upper right corner to close the window.

21) If you have three text boxes showing, enter the path m:CS113Projects as a path for saving your work then hit Save and close VB. With any kind of luck, this may be the last time you ever have to open Visual BASIC from the VB icon.

————————————————————————————–
B) Test your AuxiliaryFiles program. NOTE: Always save your projects before running them.

1) Open your M:CS113Spring11Projects Folder.  Open the outer AuxiliaryFiles folder to see the inner AuxiliaryFiles folder and a program named AuxiliaryFiles. I strongly urge you to stay out of this inner AuxiliaryFiles folder and never rename it.

2) Double click on the colorful icon for the AuxiliaryFiles.sln file

3) If your form is not present when the project opens, double click on the blue icon for AuxiliaryFiles.vb in the Solutions Explorer in the upper right.
4) Click on the green triangle near the top of the window(or press F5) to run it,
5) Click on the Exit button and the program will close because this is what you programmed it to do. (-:    Exit VB and so not save any changes.

If the program did not work as described, delete everything we just created and go back to the beginning. This has to be done properly. You will be using this template for all projects in this course.

Please report any confusions, errors or misunderstandings you encounter.  I appreciate your comments and will correct the text.

Questions?
SA(att)ProfessorsPlace(dott)Info to contact me by E-Mail.



9/7/12