by 360fliper (3 Submissions)
Category: Encryption
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 3rd January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
A VERY SIMPLE PASSWORD SCRIPT FOR BEGINNERS.
API Declarations
In the txtPassword properties,go down to "Text" and erase everyhting so it is blank. Then go down to "Password Character",then put "*". Then double click on the command button that you made and enter the following code. ( Ecellent example of the If Statement.)
If txtPassword.Caption = "PASSWORD" Then
Beep
Beep
MsgBox("Password is correct. You will now be taken to the secret area.")
Form2.Show
me.Hide
Else
MsgBox("Wrong password loser. Try again")
End If
End Sub