Users Pricing

articles

home / developersection / articles / how to create mdi form in csharp.net

How To Create MDI Form in CSharp.NET

Anonymous User 7312 22 Jul 2010 Updated 04 Mar 2020

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.

 


I am a content writter !


1 Comments


Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md