Im learning VB.NET and as a first task im creating a login form. ive been trying to link it to another form once a correct username and password are entered. however, despite that i still cant be able to hide it or unload it once the next form is loaded
Here is the Code
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click If UsernameTextBox.Text = "chris" And PasswordTextBox.Text = "chrispass" Then Me.Hide() Form2.Show() End If Me.Close() End Sub
The Form2 appears as coded above but the 'Me.Hide()' manages to hide the login form but then it appears again
Some input pls?