Hi!
I have an MDI form and several child forms. From the MainMenu, I would like to actually close the child forms, not just bring them behind the active form. The code below is from the MainMenu. It shows frmPost but places the child forms behind it and does not close them. I would like to have child forms of different sizes but with this code, one form overlays another because the child form isn't closing.
Private Sub mnuPost_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPost.Click
Dim x As New frmSumChkReg
Dim y As New frmExtract
Dim z As New frmPost
x.Close()
y.Close()
x = Nothing
y = Nothing
z.MdiParent = Me
z.Show()
End Sub
Thanks!
I have an MDI form and several child forms. From the MainMenu, I would like to actually close the child forms, not just bring them behind the active form. The code below is from the MainMenu. It shows frmPost but places the child forms behind it and does not close them. I would like to have child forms of different sizes but with this code, one form overlays another because the child form isn't closing.
Private Sub mnuPost_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPost.Click
Dim x As New frmSumChkReg
Dim y As New frmExtract
Dim z As New frmPost
x.Close()
y.Close()
x = Nothing
y = Nothing
z.MdiParent = Me
z.Show()
End Sub
Thanks!