articles

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

How To Create MDI Form in CSharp.NET

Anonymous User6725 22-Jul-2010

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;               

 How To Create MDI Form in CSharp.NET

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

 How To Create MDI Form in CSharp.NET

 

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();
        }

 How To Create MDI Form in CSharp.NET

 

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

 


Updated 04-Mar-2020
I am a content writter !

Leave Comment

Comments

Liked By