Introduction to mdi parent form in desktop application

Hello friends, today we will learn about MDI PARENT Form.

We will use the previous example of datagridview in desktop application-showing data.

Now add a new item by exploring solution explorer and add –> New Item ,  ADD NEW ITEM selection form will open as shown in the image.

add mdi parent form to desktop application
add mdi parent form to desktop application

Now add select windows form and name this form as mdimaster.

Change ismdicontainer to true  to change a normal windows form to mdi parent form.

Use this code to show a mdi parent.

this.Hide();
mdimaster mm = new mdimaster();
mm.Show();

Download the project add mdi parent form to desktop application

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: