Visual Studio: Creating a project

Microsoft Visual Studio is a powerful integrated development environment (IDE) useful to develop different types of applications. Microsoft Visual Studio is mostly useful to develop applications based on Microsoft Technologies.

This article explains steps to create a simple project using Microsoft Visual Studio IDE.

This applies to:

  • Visual Studio 2012

Step (1). Open Visual Studio application.

Step (2). Click on File menu. It will display a pull-down menu. From pull-down menu select New menu item. This will open a sub-menu.

Visual Studio - File - New menu

Visual Studio – File – New menu

Step (3). From sub-menu select Project… menu item. Visual Studio will open a “New Project” dialog.

Visual Studio - "New Project" dialog

Visual Studio – “New Project” dialog

Visual Studio displays list of available project types in left pane.

  • Recently used templates will be displayed under Recent item for faster navigation.
  • Under Online item, it will display the available project types from internet. When you select each project type, Visual Studio will search the available templates in internet and display them in right side pane.
  • Under Installed item, under Templates, Visual Studio will display the installed project types and it will display the associated templates when we select the project types.

Visual Studio uses project templates to create a new project. When you select the project type, the associated templates will be displayed in the middle pane.

Description of the selected template will be displayed in the right pane.

Step (4). Now, from “New Project” dialog, expand Installed item from left pane; then expand Templates item to display list of installed project types.

Step (5). Select the project type from the list, that you want to create a project. Eg: Select Visual C# project type under Other Languages to create a C# project.

Step (6). Once you select the project type, Visual Studio displays the available templates in right side pane. Select the template depending on your project requirement. Eg: Select Windows Forms Application template to create an application with a Windows Forms user interface.

Step (7). Provide the name of the project in Name: field.

Step (8). Select the version of the .Net Framework you want to use from .Net Framework combo box which is displayed at the top of the “New Project” dialog.

Step (9). Once you provide the necessary data, click on OK button to create a project of selected project type based on the selected project template.

Step (10). Visual Studio will create a project and display the form designer.

Visual Studio - Form designer

Visual Studio – Form designer

  • Form designer is to design the Windows Forms user interface.
  • You can select form elements from Toolbox pane. If Toolbox pane is not visible, click on View menu and then select Toolbox menu item. Or type Ctrl + Alt + X keyboard keys to display the Toolbox pane.
  • Form’s properties will be displayed in Properties pane. If Properties pane is not visible, click on VIEW menu and them select Properties Window menu item. Or type F4 key from keyboard to display Properties pane.

Step (11). Now the project’s basic setup is done. Click on DEBUG menu and then select Start Without Debugging menu item to run the project. Or type Ctrl + F5 keys from keyboard to run the project.

The result is:

Visual Studio - Run project  - Form1

Visual Studio – Run project – Form1

Without writing a single line of code, with the help of project template, the simple Windows Form is ready. You can place controls on the Windows Form and adding events to them to extend the functionality to create more interactive forms.

by Code Steps

Leave a Reply