Hello
I want to open one Form from another form. But only if it isn't already
open. I tried this (code below) but to click the close [x] Button of a form
doesn't seem to set the referencing variables to Nothing.
Private frm As Form2
Private Sub btnShowForm_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnShowForm.Click
If (frm Is Nothing) Then
frm = New Form2()
frm.Show()
End If
End Sub
So how can I check if the Form2 is already there or closed again?
Thank you
Sincerely
Lore