Hello everyone
. I absolutely LOVE this program, and I am trying to make a program that simply asks for user input and if the information is correct, it redirects to Google, for no reason at all
. I need to know how to do a couple things:
1) Hide one applet and have another show immediately after (Applet1 and Applet2)
2) I need to know the code that would make sure the user input is correct and if it is it redirects to Google, here is both codings that I am having trouble with.
Hide/Show Applets:
|
Source code
|
1
2
3
4
5
|
Public Sub Command1_Click()
Applet1.hide
Applet2.start
End Sub
|
Login:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Public Sub Command1_Click()
If Command1 = "lol" Then
Goto password
Else
Goto password
End If
password:
If command2 = "lolwut" Then
Open Applet1
Else
Open Applet3
End If
End Sub
|
Applet 1 just has one button that says "Congrats! Login Success!" I also need help with this button, as I need to know how to make the Applet close or end when that button is pushed.
Applet 3 just has a button that says "FAIL!" I need this to auto close when the button is pushed.
The program does not work and does not compile so it does not open. Here are a couple screenshots:
Home for login:
If the login is successful:
If the login failed:
Thanks!