Talk2Tom11
Well-known member
what I want to do is write an if statement to see if a registry key exists... if it does... I want one form to open, if it doesnt then I want the other form to open... my problem is that form2 in my code opens no matter what, if the key exists of not. I have posted the code below... please post if you know what I have done wrong.
Code:
MyKey = Registry.CurrentUser.OpenSubKey("User", False)
If (MyKey Is Nothing) Then
Dim f2 As New Form2
f2.ShowDialog()
Else
Dim f3 As New Form3
f3.ShowDialog()