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 first published in June 2004

Dig deeper on Win Development Resources

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close