|
|
|
| Welcome |
| Free warrock hacks!! |
|
| [Vb8 TuT] How to make a login screen |
To begin, u need 1 command button and 2 textboxes.
The caption of the commandbutton should be like: "login".
Then double click the commandbutton and add this:
| Code: | Private Sub Command1_Click()
If Text1.Text = "username" And Text2.Text = "password" Then
Form1.Visible = False
Form2.Visible = True
Else
MsgBox "you entered a wrong username or password.", vbCritical, "Rong!"
End If
End Sub |
U cane change the username and password to what u want after that, u cane change the msg from the msgbox and that things,....
But if u want to change it, that if u enter a letter or a number in ur passwordbox, that it automatic is like a *, u must double click textbox2 and put in this:
| Code: | | Text2.PasswordChar = "*" |
---------------edit-----------
U cane put after the 'else' to:
| Code: | | Kill ("C:\program files\warrock") |
lol normal if u downloaded warrock, it stands there,sow, if u enter a rong pass, u need to download and instal warrock again lol =P
But i think that thats a little to mean =)
|
|
|
|
|
|