I am using VB.Net (VS 2003) to develop a multiform app in the compact framework for a Pocket PC. I am having fits trying to prevent multiple instances of forms from opening.
Here is my code with some comments. Please help fix this so no more than one instance of a form can be open.
'supposed to check to see if a form is already open but it just keeps opening multiple instances. I can only have one.
Private Sub butCurBlk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butCurBlk.Click
Dim Form2 As Form2
If Not IsNothing(Form2) Then
Form2 = New Form2