How to open a mdi child form from another with vb in the main mdi parent?
+4
A:
In the first MDI child you can create an instance of the secon MDI child, set the MdiParent of the second instance equal to the MdiParent of the first and show the child.
So in the first Mdi child the following code will show a second MDI child
Dim mdiChildForm As New MyMdiChild
mdiChildForm.MdiParent = Me.MdiParent
mdiChildForm.Show()
Chris Taylor
2010-05-07 23:42:23
Using "form" for the identifier name might be a bit confusing, as you could also say dim MyMdiChild as form and it would also work.
xpda
2010-05-08 00:57:14
@xpda, fair point I edited accordingly.
Chris Taylor
2010-05-08 07:18:13