W
Waffles
Guest
Objects Needed:
- Text Box
- Label
- Command Button
- Timer
Place All 4 Of The Above Object Onto Your Form
Properties:
Text1 - Text - (Empty)
Text1 - PasswordChar - *
Label1 - Caption - Enter The Password
Command1 - Caption - Try Password
Timer1 - Interval - 15000
Timer1 - Enabled - True
Form1 - Caption - Password
Coding:
Double Click On The Form & Input The Following
Double Click On The Command Button & Input The Following
The Above Coding Is Telling The Program That If The Password "yourpassword" (without quotes) Is Entered Into The Text Box, The Message "Access Granted" Will Appear. But If The Certain Password Is Not Correct, It Will Tell The User "Access Denied" And Also, A 15 Second Wait Is On The Form
- Text Box
- Label
- Command Button
- Timer
Place All 4 Of The Above Object Onto Your Form
Properties:
Text1 - Text - (Empty)
Text1 - PasswordChar - *
Label1 - Caption - Enter The Password
Command1 - Caption - Try Password
Timer1 - Interval - 15000
Timer1 - Enabled - True
Form1 - Caption - Password
Coding:
Double Click On The Form & Input The Following
Code:
MsgBox("Time Expired") End
Double Click On The Command Button & Input The Following
Code:
If Text1.Text = "yourpassword" Then Timer1.Enabled = False MsgBox("Access Granted") End Else MsgBox("Access Denied") End If
The Above Coding Is Telling The Program That If The Password "yourpassword" (without quotes) Is Entered Into The Text Box, The Message "Access Granted" Will Appear. But If The Certain Password Is Not Correct, It Will Tell The User "Access Denied" And Also, A 15 Second Wait Is On The Form


