Creating a New C# Project in Visual Studio

Visual Studio IDE

Creating a New C# Project in Visual Studio

For this tutorial, you are going to need Microsoft Visual studio installed on your computer.
If you don’t have one, Microsoft offers a free version that is very good for small team and has almost everything that you need that are available in the paid versions. 

They used to have an Express version for a specific platform, such as Windows Universal Platform applications, web sites, and Windows desktop applications, now there is only the community version with a customized installer to only install those features that you only need, like to develop for WPF, WinForms, ASP.NET, Universal Windows Platform, Win32, Android, iOS, and many more platforms all from one IDE with everything you need.

Visual Studio Community Version

Visual Studio Community is a fully-featured, extensible, free IDE for creating modern applications for Android, iOS, Windows, as well as web applications and cloud services for students, open-source and individual developers. It has everything you need all in one place.

Any individual developer can use Visual Studio Community to create their own free or paid apps, in organizations, the following limitations apply:

  • An unlimited number of users within an organization can use Visual Studio Community for the following scenarios: in a classroom learning environment, for academic research, or for contributing to open source projects.
  • For all other usage scenarios: In non-enterprise organizations, up to five users can use Visual Studio Community. In enterprise organizations (meaning those with >250 PCs or >$1 Million US Dollars in annual revenue), no use is permitted beyond the open source, academic research, and classroom learning environment scenarios described above. You can read more for the license terms.

Multi-language support, you can use the language of your choice including C#, Visual Basic, F#, C++, JavaScript, TypeScript, Python, and more.

Download: Visual Studio Community

There are other Visual Studio Versions, Visual Studio Professional (Professional developer tools, services, and subscription benefits for small teams) and Visual Studio Enterprise(End-to-end solution to meet demanding quality and scale needs of teams of all sizes).

After installing your Visual studio product, Depending on your operating system, start Visual studio,  a Start window will open.
Click on “New Project…” or open File Menu than “New Project…” to create a new project.
A Sub window will pop out giving you options of different templates of Visual C# 2010 which includes 
Windows Form Application, WPF Application, Console Application, Class Library and WPF Browser Application.
To design a GUI, select Window Forms Application, give it a name and click OK.


After you click OK, a new Windows Application project will be created for you with a blank form.

1. The Form

This is the main Graphical Window of the program appearing in the middle. It is here where we will put all the controls (Buttons, labels, combo boxes ect.).

2. The ToolBox

The ToolBox contains all the controls that we need to create our program. All you need to
do is to drag and drop a control from the ToolBox on the left hand side onto the Form.

3. Properties and Solution Explorer (4)

Each control like a button has its properties.
A property of a control is things like its Height, its Width, its Name, its Text, and a whole lot more.
To see what properties are available for a specific control, make sure that its selected first by just clicking on it on the form and then check its properties on the bottom right hand side.
For example by clicking the Form, you can change its Text properties from “Form1” to let say “Gui Test”.
The Text property of a control is what is displayed on that control, (Like a Send button, “Send” will be its text property) but the Name property of a control its the name of that control used in the code (Send button will have a name like bntSend).
When naming a control, start with a letter and don’t include space or special characters.
In the solution Explorer, you will see the name of the current project and all the forms as normally a project can have more than one forms.


To save your project, go to file menu and click save or click on save icon on the toolbar to save your project. When you click on save for the first time, you will be prompted to choose a directory where to save your project and give it a name.

Share this post


Select your currency
EUR Euro
GBPPound sterling