Creating a New Visual Basic Project

From Techotopia
Jump to: navigation, search
PreviousTable of ContentsNext
Downloading and Installing Visual StudioA Simple Visual Basic Example


Purchase and download the fully updated Visual Basic 2010 edition of this eBook in PDF and ePub for only $9.99


Visual Studio uses the concept of projects to contain everything to build an application using Visual Basic. Typically there will be one Visual Studio project per individual application you develop. In this chapter we will look at creating a new Visual Studio project.

Creating a Project in Visual Studio

Now that Visual Studio is installed it is time to create a new project. Begin by starting Visual Studio from the Windows Start menu. When the main Visual Studio Window appears click on the File menu and select New Project. Visual Studio will display the "New Project" dialog shown below:

Visual Studio New Project Dialog

The New Project dialog provides a number of options with regard to the type of project being created. In this example we are going to build a Windows Application. A Windows Application is a graphical application (in other words an application that appears in a window and contains buttons, text fields and all the other graphical items we expect to see when we run Microsoft Windows applications).

Select the Windows Application icon from the New Project dialog and give your new project a name by typing it into the Name: field (for example you might want to name your project "VBexample"). Click on the OK button to create the project. Once the project is created Visual Studio will display the new project, which at this point consists of a single form, ready for us to start adding visual components:

A new project in Visual Studio

Now that we have created a new project in Visual Studio it is time to move on to the next chapter and create a simple Visual Basic application.


Purchase and download the fully updated Visual Basic 2010 edition of this eBook in PDF and ePub for only $9.99