Private Sub FrmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If My.Computer.Registry.GetValue("HKEY_CURRENT_USER\1227", "1227", Nothing) Is Nothing Then
Me.Show()
Else
Form2.Show()
Me.Hide()
End If
End Sub
How is possible that this code is not working ? . It won't hide the Me form even if the Registry exist or not