---
title: "How to Add New Form (New Window) in C#.Net with Visual Studio 2012"  
description: "In this Blog I am trying to explain \"How to Add New Form (New Window) in C#.Net with Visual Studio 2012\".Open Visual Studio 2012  Create New Project"  
author: "Vilas Shende"  
published: 2013-09-09  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/583/how-to-add-new-form-new-window-in-c-sharp-dot-net-with-visual-studio-2012  
category: "c#"  
tags: ["c#"]  
reading_time: 3 minutes  

---

# How to Add New Form (New Window) in C#.Net with Visual Studio 2012

In this Blog I [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) to explain "How to Add New Form (New Window) in C#.Net with [Visual Studio](https://www.mindstick.com/articles/12378/visual-studio-for-mac-is-out-of-beta-preview-now-officially-available) 2012".\
\
Open Visual Studio 2012\
![How to Add New Form (New Window) in C#.Net with Visual Studio 2012](http://1.bp.blogspot.com/-7Qxr2FYwjjY/Ui2-hkBMgGI/AAAAAAAAAFs/0SLWZTvlJho/s320/1.png)\
\
Create New Project\
![How to Add New Form (New Window) in C#.Net with Visual Studio 2012](http://1.bp.blogspot.com/-2gr56_UYSU4/Ui2_jSQL6BI/AAAAAAAAAF0/eyFlEZLZaZo/s320/2.png)\
Select Language "Visual C#", Select Application Type "Windows [Form Application](https://www.mindstick.com/forum/34200/system-data-sqlclient-sqlexception-occurred-while-using-checked-or-radio-button-in-form-application)" & click on OK button.\
![How to Add New Form (New Window) in C#.Net with Visual Studio 2012](http://3.bp.blogspot.com/-llCitGCf-9I/Ui3AkT350rI/AAAAAAAAAF8/Cx9QG6d3Wuw/s320/3.png)\
You will get blank Form as shown below.![How to Add New Form (New Window) in C#.Net with Visual Studio 2012](http://3.bp.blogspot.com/-iuepO-xlZkI/Ui3BXRNyQ4I/AAAAAAAAAGE/EOjHCAJ6GkU/s320/Untitled.png)\
Add [Button control](https://www.mindstick.com/articles/290/button-control-in-vb-dot-net) on form*How to add Button Control?You will see Toolbox at lest side of opened blank Form, if Toolbox not visible at lest side of the bank form then Go to Menu Bar > View > Toolbox OR you can open using shortcut key "Ctrl + Alt + X"\
There are 3 options to add Button control on form (may be more)a) Drag & Drop Button control from Toolbox ORb) Single click on Button control then single click on Form ORc) [Double click](https://www.mindstick.com/forum/155692/what-is-dfp-double-click-for-publisher) on Button control.\
After adding Button Control, you can re-size, rename it, I have renamed it as "Open New Form". Now your form will look like below given image.\
![How to Add New Form (New Window) in C#.Net with Visual Studio 2012](http://2.bp.blogspot.com/-58OpX5eEcwk/Ui6SfB6KYHI/AAAAAAAAAGU/ayfXBpTgjEc/s320/5.png)\
Now Add New Item.*How to Add New Item?Go to Menu Bar > Project > Add New Item OR use shortcut key "Ctrl + Shift + A", you will get long list of items, you have to choose "Windows Form" as shown in following image then click to Add button.![How to Add New Form (New Window) in C#.Net with Visual Studio 2012](http://3.bp.blogspot.com/-lRTnH1rn8Hc/Ui6T3UrOXdI/AAAAAAAAAGg/vLubpSisfWA/s320/6.png)\
Now you are having two forms. i.e. Form1 (First Window) & Form2 (Second Window). Return to Form1 where we added Button Control To Open New Form (New Window).Double Click on Button Control, You will see code section (code window) as given below.\
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;\
namespace New_Project{ public [partial class](https://www.mindstick.com/forum/155717/define-partial-class-in-mvc) Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) {\
} }}\
Write the code for linking Second Form with Button control.\
*Which/What code I have to write & Where to Write?You have to Write This Code\
Form2 VILAS = new Form2(); VILAS.Show(); \
Above code should be in-between Button control [click event](https://www.mindstick.com/forum/424/how-to-call-form_paint-event-on-button-click-event), that mean your final code will look like this\
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;\
namespace New_Project{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Form2 VILAS = new Form2(); VILAS.Show(); } }}\
Build [your code](https://www.mindstick.com/forum/157976/how-can-you-use-jquery-s-testing-framework-such-as-qunit-to-write-unit-tests-for-your-code) & run it.\
*How to Build?Go to Menu Bar > Build > Build New Project.Congrats, your little Project has been finished now.\
Now check & Run [your project](https://www.mindstick.com/forum/156583/best-way-to-link-bootstrap-file-in-your-project)?*How to check & Run?Go to Menu Bar > Debug Start Debugging OR Press "F5" Button to run. Your first Form (First window) will appear with button Control, Now Press Button "Open New Form", Exactly you will get your Second Form (Second Window).![How to Add New Form (New Window) in C#.Net with Visual Studio 2012](http://4.bp.blogspot.com/-lrAHrldWMI4/Ui6ZNqBsXkI/AAAAAAAAAGs/V17HSkUP6SA/s320/7.png)\
\
\
\
Thanks, I hope this blog will help you to understand "How to Add New Form OR How to Open New Window from Exist one".\
More [Blogs](https://www.mindstick.com/developersection/blog)>>

---

Original Source: https://www.mindstick.com/blog/583/how-to-add-new-form-new-window-in-c-sharp-dot-net-with-visual-studio-2012

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
