hello
today i start writing an application which uses mdi forms(its new to me). and i use the following code:(i set form1=idmdicontainer=true) , is this correct way to create mdi forms ?
further i write the code :
there i have 2 more forms (form2 and form 3)
Private Sub RegisterToolStripMenuItem_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RegisterToolStripMenuItem.Click
Dim frm As New Form2
frm.MdiParent = Me
frm.Show()
End Sub
Private Sub RegisterToolStripMenuItem1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RegisterToolStripMenuItem1.Click
Dim frm As New Form3
frm.MdiParent = Me
frm.Show()
End Sub
on the first menu's click i wanna show form2 and on the other 's click i wanna show form3. when i click more times on these menus , these forms continue to load , and therfore i a lot forms load in the mdi form
here is what i want
when i want to open the form it should unload the current child form and then it should load the form.how can i do that ?