How to reload MDI Child Form into Parent Form.

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

Hi VB.Net Gurus.

Initial MDI Child form loads fine.
exp.
Dim objChild2 As New Form2()
objChild2.MdiParent = Me
objChild2.Show()

MDI Child unloads just fine.
Exp.
If e.Button Is tbbExit Then
'' Me.Close()
Me.Hide()

rs.Close()
cn.Close()

End If

The MDI Child reload does not reload into the parent form.
It reloads outside the parent form.
exp.
Dim oForm As New Form2()
oForm.MdiParent = Me.ActiveMdiChild
oForm.Show()

Regards,

Tony
 
Maybe I'm missing something but why not just use the same
code again to show another instance of the child form ?

\\\
Dim objChild2 As New Form2()
objChild2.MdiParent = Me
objChild2.Show()
///
 
Back
Top