Home > DeveloperSection > Articles > How To Create MDI Form in CSharp.NET

How To Create MDI Form in CSharp.NET


C# C# 
Ratings:
1 Comment(s)
 4684  View(s)
Rate this:

HOW TO CREATE MDI FORM IN .NET

To create MDI form we have to open a form then we have to set the property ‘IsMdiContainer’ of the form to ‘true’. The form will look like this.

this.IsMdiContainer = true;               

Now add menu, to add menu use menuStrip from tools.

 

Now, once the MDI form is created we need to do its coding.

Coding

private void mdiRecords_Load(object sender, EventArgs e)

        {

                this.IsMdiContainer = true;               

                frmRecord fr = new frmRecord();

//here setting child form MdiParent to this MDI form.

                fr.MdiParent = this;

                fr.Show();

        }

 

                        

Here, MDIParent1 is parent form and Record (frmRecord) is child form.


Thanks..

By Sunil Singh on   one month ago

Keep sharing these types of articles.


Don't want to miss updates? Please click the below button!

Follow MindStick