Q

Is there any way to open the called child form in the same MDI form where the calling form resides?

When I am trying to open a child form from another child form, it is opening outside the MDI form. Is there any way to open the called child form in the same MDI form where the calling form resides? This is the code written in child2 to open the child1:

Dim Child1 As New frmChild1
Dim mdi1 as new frmMDI
child1.MDIParent = mdi1
child1.Show()
Make sure mdil has its IsMdiContainer property set to true. Try:

Dim Child1 As New frmChild1
Dim mdi1 as new frmMDI
mdil.IsMdiContainer = True
child1.MDIParent = mdi1
child1.Show()
This was last published in June 2004

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close