MDI - how to open a child from a child within MDI parent form?

MDI - how to open a child from a child within MDI parent form?

Post by Marina Ney » Sun, 08 Feb 2004 10:27:53


Hi,

I am trying to open a child from another child within MDI. I need to keep
everything within one parent form.

I wrote the following for each of the menu buttons on MDI parent:

Public Sub ShowMdiChildWindow(ByVal frm As Form)
If frm Is Nothing Then
Me.Show()
Else
frm.MdiParent = Me
frm.Show()

End If

End Sub