Tuesday, September 10, 2013

How to Create a Visual Basic Project Using the Project Name


1. Open your developer environment.
2. Click on 'Project' next to 'Create' in the upper left hand corner of the middle panel.
3. Choose 'Windows Form Application' from the choices available. This will create a blank form so you can add text boxes, labels and other items you may need.
4. Type the name of your file in the 'Name' box. This will become the project name Visual Basic references throughout the creation of the project. Your project name cannot contain any characters like '?' '/' '.' and others. If you place any characters that are not allowed, you will get an error message that shows what you did wrong when you hit 'OK.' It is OK to include underscores such as '_' and any number in your project name. There are no restrictions on lower and uppercase letters. Hit 'OK' when finished.
5. Begin building your form by adding items from the 'Tool Box' as necessary. Save your work periodically by clicking on 'File' in the menu bar and then choosing 'Save All.' The first time you do this, a box will pop up asking you to confirm the location of the file. Visual Basic Express and Visual Studio.NET will choose a 'C://UserName/Documents/Projects' file path by default. You are free to click on 'Browse' and save your project to a different location. When you are satisfied, click 'Save.'
6. Double-click on any of the items you added to your form to access the code page. Add any necessary code in the proper locations to make your application function properly.
7. Press the 'F5' key on your keyboard to run your application to begin testing it. Correct any errors in your code. Continually save your work.
8. Close your developer environment when you are finished.