
Closing and discarding a form
I have two forms: MDIForm and ChildForm.
To open the child form from the MDI I do:
Dim f As frmChildForm
If IsNothing(f) Then
f = New frmChildForm()
f.MdiParent = Me
End If
f.Show()
where f is a module variable.
But if I close the ChildForm whith Me.Close and then I try to open it
again, I get problem, because f si not Nothing.
From the other site, I cannot remove the IF...THEN that avoids two
instances of the same form.
Any suggestion?
Thank you.
Gio