Password Protection! For Beginners

By | 2002-06-01

Protect your project with a password of your choice. For beginners! (o:

Original Author: SeeD

Inputs

Follow these simple instructions. (o:
1) Open a new project in your Visual Basic.
2) Make 1 Text Box and Make 1 Command button.
3) Make the Text Boxes caption blank. Make the command buttons caption “ok”

Code

'Put this in your Command1 code. (o:
Private Sub Command1_Click()

If Text1.Text = "idunno" Then

MsgBox "You got it right!", 8, "Right Password!"
Else
MsgBox "You got it wrong!", 8, "Wrong Password!"
End If
End Sub

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.