08-26-2012, 08:56 PM
So I have 3 forms inside a project:
1: Login
2: Launchpad
3: Irrelevant but: About
The first one that comes up upon start is "Login"
It has 2 text box forms, with "Username" and "Password"
and then a login button (See code Below)
My problem is, I have it set to if the login information is correct, close the "Login" window and open the "Launchpad" Form. And what happens is, when I fill it out correctly, and click login, it opens launchpad really fast and then closes everything. Please help.
1: Login
2: Launchpad
3: Irrelevant but: About
The first one that comes up upon start is "Login"
It has 2 text box forms, with "Username" and "Password"
and then a login button (See code Below)
My problem is, I have it set to if the login information is correct, close the "Login" window and open the "Launchpad" Form. And what happens is, when I fill it out correctly, and click login, it opens launchpad really fast and then closes everything. Please help.
Code:
If TextBox1.Text = "a" And TextBox2.Text = "a" Then
Launchpad.Show()
Me.Close()
Else : MsgBox("You have specified an Incorrect Username or Password, Please Try Again. If problems still persist, please contact Support.")
End If