Innocent
November 26th, 2002, 05:53 PM
I have a MDI parent window and two child windows (for this example - the app contains lots of forms...).
In frmMDIParent the child form is made visible:
Public Sub OpenChild()
Dim dlgChild as frmChild = New Child
dlgChild.MdiParent = Me
dlgChild.Show()
End Sub
In frmChild I try to open form with the parent of child as parent:
Public Sub OpenChild2
Dim dlgChild2 as frmChild2 = New frmChild2
dlgChild2.MdiParent = Me.Parent 'Application crash here
dlgChild2.Show
End Sub
Anyone knows how I can solve this?
In frmMDIParent the child form is made visible:
Public Sub OpenChild()
Dim dlgChild as frmChild = New Child
dlgChild.MdiParent = Me
dlgChild.Show()
End Sub
In frmChild I try to open form with the parent of child as parent:
Public Sub OpenChild2
Dim dlgChild2 as frmChild2 = New frmChild2
dlgChild2.MdiParent = Me.Parent 'Application crash here
dlgChild2.Show
End Sub
Anyone knows how I can solve this?