In this tutorial I’ll show you how to use Multiple Document Interface (MDI) in windows from using C#.
INITIAL CHAMBER
Step 1
Open Visual Studio 2010 and go to File, New, Projects, then under Visual C# select Windows.

You can change the name of the project and browse your project to different location too and then press OK.
DESIGN CHAMBER
Step 2
Now open your Form1.cs [Design] file, where we create our design for MDI. We will drag two buttons to start our MDI in Form1.cs [Design]. You can see the following screen:.

In Form1.cs design, you have to change the width of the form as it will open another form, so your form will not be visible.. Therefore change its width. There is one more property - IsMdiContainer, make it True.

Now open your Form1.cs [Design] file, where we create our design for MDI. We will drag two buttons to start our MDI in Form1.cs [Design]. You can see the following screen:.

In Form1.cs design, you have to change the width of the form as it will open another form, so your form will not be visible.. Therefore change its width. There is one more property - IsMdiContainer, make it True.

Again go back to your Project - Add New Item and select Form2.cs. In the same way again add new form - - Form3.cs.
CODE CHAMBER
Right click on the blank part of Form1.cs and View Code. You will see you are entered in the code part of the form. Write the following code and then Press F5 to run the project.
CODE CHAMBER
Right click on the blank part of Form1.cs and View Code. You will see you are entered in the code part of the form. Write the following code and then Press F5 to run the project.




Santhakumar MunuswamyPosted Oct 18, 2015, 2:38 AM
Good one
RakeshPosted Oct 16, 2015, 12:26 AM
Good one
Priyaranjan K SPosted Oct 15, 2015, 2:30 PM
Good One Nilesh
Sujeet SumanPosted Oct 15, 2015, 2:04 PM
Nice one...........
Guest UserPosted Oct 15, 2015, 12:33 PM
nice tutorial. I like it.
Mukesh KumarPosted Oct 15, 2015, 6:43 AM
Great Sir...
Jacob RobinsonPosted Oct 15, 2015, 6:19 AM
Good One..