---
title: "How To Create MDI Form in CSharp.NET"  
description: "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"  
author: "Anonymous User"  
published: 2010-07-22  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/68/how-to-create-mdi-form-in-csharp-dot-net  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How To Create MDI Form in CSharp.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;

![How To Create MDI Form in CSharp.NET](https://www.mindstick.com/mindstickarticle/fbff338e-e144-4ee8-8d86-d8dca8fb97d6/images/c87c1f0d-6fe3-497a-9c44-b1d6486d237c.png)

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

![How To Create MDI Form in CSharp.NET](https://www.mindstick.com/mindstickarticle/fbff338e-e144-4ee8-8d86-d8dca8fb97d6/images/be62557e-3b8f-45bc-bedf-ddd4ee2470af.png)

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](https://www.mindstick.com/mindstickarticle/fbff338e-e144-4ee8-8d86-d8dca8fb97d6/images/dfe1550e-b553-4d95-8bd4-f7988cd762ea.png)

Here, MDIParent1 is parent form and Record (frmRecord) is child form.

---

Original Source: https://www.mindstick.com/articles/68/how-to-create-mdi-form-in-csharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
