1. Add a new form2 with only one command button (else you can hide the controls on form load of main form and show only the main command button.)
2. Add a new form3 with fields User Name, Password and cmdbtn OK,Cancel.
3. Create a button(Save) in New Form3 to save these values in registry. You can encrypt the password if u wish.
You can omit this step if you don't want to provide multiple access to the program. In that case you can provide some default password. and the save button will reset the default password after confirmation od old password.
4. On CLICK of your desired button load the Password Form.
5. On click of OK button of Password form, cross check with the stored password in registry.
then open the desired form if New Form2 is loaded first.or make the fields of the Main form visible (if they are hidden earlier)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.