Greetings Everyone,

I have several forms in my project and I have set the IsMdiContainer property to True on my main form.

This project also is not using a menu system. Instead I'm using a 3rd party ribbon control with buttons that call the other forms in the project.

Can you tell me how to set the other existing forms in the project as MDI child forms?

Thanks.

Truly,
Emad

Dim frm as New From1
frm.MdiParent=Me  'Reference of MDI Parent
frm.Show()

Hi,

In addition Adatapost has written:

You need to create a parentform, to do so you can use Form1 and rename it parentform.vb. Then you need to set the property IsMDIContainer = true. When you add a new form to your application you'll see that it will create a Form1 again. Then use Adatapost's code.

commented: Helpful! +9

Hi Everyone,

Thanks for the replies.

They are very helpful.

Truly,
Emad

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.