|
-
Apr 8th, 2006, 05:16 AM
#1
Thread Starter
Member
-
Apr 8th, 2006, 05:30 AM
#2
Member
Re: Locking form
wow just a few weeks ago i created a lock down screen hoping your using windows xp , i'll give you the link to the full source code make sure you find the password in the code an change it , try mixing this and your application together ot just simply compile and use it, Link is:
http://www.pscode.com/vb/scripts/Sho...64768&lngWId=1
Nothing can get past my lock down screen, also if you do not want it to start up when windows loads in the the code delete
Code:
REGSaveSetting vHKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Run", "LoGonWindow", App.Path & "\" & App.EXEName & ".exe"
Hope this helps
-
Apr 8th, 2006, 10:24 AM
#3
Re: Locking form
myrea,
I am assuming you want to let other users use the computer while you're away just not your app.
You could hide the main form (form1.Hide) then show it again after sucessful login (form1.Show).
Instead of putting up the login screen you could use a task tray icon. When the user clicks on the icon he gets the login window.
This way you won't have to worry about what happens if he closes the login window because you can bring it up again from the task tray icon.
-
Apr 8th, 2006, 07:55 PM
#4
Thread Starter
Member
Re: Locking form
 Originally Posted by moeur
myrea,
I am assuming you want to let other users use the computer while you're away just not your app.
You could hide the main form (form1.Hide) then show it again after sucessful login (form1.Show).
Instead of putting up the login screen you could use a task tray icon. When the user clicks on the icon he gets the login window.
This way you won't have to worry about what happens if he closes the login window because you can bring it up again from the task tray icon.
Thanks guyz! Thanks devil jin
Thanks moeur but I want my application visible because I have "clock" there.
And I want everyone to see the clock and there time in because my
application is like a in a internet cafe with a time in and time out and I dont
want them to edit their time. Thanks.
-
Apr 8th, 2006, 10:46 PM
#5
Re: Locking form
Make KeyPreview for the form true. Trap all keypresses. If the user presses alt-Q (or whatever key you want for "unlock", turn off the trapping, otherwise return a 0. Maybe pop up a msgbox that tells them that the app is locked. (Turn trapping on with a command or by clicking on something people normally don't click on, like a picture.)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|