How to make a simple Password protection for all.
Posted on January 4, 2009
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 'System & API - How to make a simple Password protection for all. 'Make a form with two 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") End If End Sub |
Related posts:
- Visual Basic 6.0 Tutorial 2# – Make a Simple Login system [NOOB FRIENDLY]
- How to make a password protected program in VB6
- [tutorial] Password Protected Program
- How to Create a Form with “Don’t show this message again”
- Simple Password protected program VB6
- Tutorial – Login Form in Visual Basic 2008
- How To Make A Simple Twitter Application In Visual Basic 2008
- How to set a password for an access database
- How to create a splash screen.
- Visual Basic 2008 Tut: How to make a password protected program