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