How to reload MDI Child Form into Parent Form.

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
 
S

Steven Smith

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()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top