Visual Studio Executable File Location

Where is Visual Studio located?

It is not immediately obvious where the location of the IDE Executable is for Visual Studio, however they all follow the same format so if you can find one you can find the others.

C:\Program Files (x86)\Microsoft Visual Studio XXX\Common7\IDE

Where XXX is equal to the Visual Studio major version number.

2005 – 8.0
2008 – 9.0
2010 – 10.0
2012 – 11.0
2015 – 14.0

If you are using Express, you are looking for WDExpress.exe and if you have Visual Studio Pro/Ultimate you are looking for devenv.exe

The location of C:\Program Files (x86)\Microsoft Visual Studio XXX\ is also home to many programmer relevant tools to aid in software development.

If you have individual Express IDEs they will be located in

C:\Program Files (x86)\Microsoft Visual Studio XXX\YY

Where YY is your individual language folder. You will also be looking for YYExpress.exe in this location.

C++ – VC
C# – VC#
VB.Net – VB

How To: Add Form as child of Form

As anyone who has taken a look at Form.Designer in Visual Studio knows, Form creation and Controls are all created at runtime with code.  With this knowledge, it becomes possible to create your own forms dynamically at runtime as well, or even just modify the Form.

Difficulty: Beginner

Adding default blank Form

Form child = new Form();
child.Text = "New Child Form";
child.TopLevel = false;
this.Controls.Add(child);
child.Parent = this;
child.Show();

Adding default Form1 to self

Form1 child = new Form1();
child.Text = "New Child Form";
child.TopLevel = false;
this.Controls.Add(child);
child.Parent = this;
child.Show();

The important section of this code is actually where Toplevel is set.  If you do not set Toplevel to false, your code will throw an Exception.

Images

Child Form Tutorial
Children Forms