Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
A simple Password protection for all. ...
Author:
Arun S Nair
E-mail:
Click to e-mail author
Submitted:
10/14/2000
Version:
VB6
Compatibility:
VB6
Category:
Security
Views:
16534
A simple Password protection for all.
Declarations:
'none
Code:
'make a form with ttwo text boxes and two command button. 1)cmdenter 2)cmdchange 3)txtpass 4)txtcheck ----------------------------------------------------- sub cmdchange_click () 'first password must be set 'the string in the txtpass is to be saved savesetting "pass","Password","user",txtpass.text end sub sub form_load() 'load the password txtpass.text=getsetting("pass","Password","user","") end sub sub cmdenter_click () 'check the password. If correct show another form if txtuser.text=txtpass.text then unload me load frm2 frm2.show else msgbox("Invalid Password") endif end sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement