screen lockmy application will lock the screen until user enter the correct passw
Page 1 of 1
14 Replies - 10558 Views - Last Post: 25 January 2010 - 12:08 AM
#1
screen lock
Posted 22 January 2010 - 02:37 AM
what will i have to make this application and how i can do this
#3
Re: screen lock
Posted 22 January 2010 - 04:16 AM
- First of all, decide whether you're going to make the computer beep or not, I suggest you make it beep thrice when they enter an incorrect password
- Cancel the form closing event so the user can't alt+f4 his way out
Warning: this will cause the user to not be able to "soft reboot/shutoff" his comp without entering the password.
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing e.Cancel = True End Sub
- Maximize the window me.windowstate = formwindowstate.maximized
- Make the form the top most window me.topmost = true
- Make sure the user doesn't minimize/resotre his way out:
'Put this in a timer tick event If Me.WindowState <> FormWindowState.Maximized Then Me.WindowState = FormWindowState.Maximized End If
Oh, remember to disable ctrl+alt+delete, I don't remember how to do that ATM
Now you can add a textbox and button for the password.
TIP/Challenge: Try using the Microsoft Speech SDK to make the program constantly pressure the user to enter his/her password.
Oh, if you want to be really mean you could lock the user's mouse cursor in a little rectangle cage
------------------------------------------
EDIT: I am assuming that the OP is going to use this in a responsible way.
This post has been edited by LeisureProgrammer: 22 January 2010 - 06:23 PM
#4
Re: screen lock
Posted 22 January 2010 - 02:52 PM
LeisureProgrammer, on 22 Jan, 2010 - 10:16 AM, said:
- First of all, decide whether you're going to make the computer beep or not, I suggest you make it beep thrice when they enter an incorrect password
- Cancel the form closing event so the user can't alt+f4 his way out
Warning: this will cause the user to not be able to "soft reboot/shutoff" his comp without entering the password.
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing e.Cancel = True End Sub
- Maximize the window me.windowstate = formwindowstate.maximized
- Make the form the top most window me.topmost = true
- Make sure the user doesn't minimize/resotre his way out:
'Put this in a timer tick event If Me.WindowState <> FormWindowState.Maximized Then Me.WindowState = FormWindowState.Maximized End If
Oh, remember to disable ctrl+alt+delete, I don't remember how to do that ATM
Now you can add a textbox and button for the password.
TIP/Challenge: Try using the Microsoft Speech SDK to make the program constantly pressure the user to enter his/her password.
Oh, if you want to be really mean you could lock the user's mouse cursor in a little rectangle cage
Sounds to me more like a virus than a useful application
You could also include something to once in a while say that the password is wrong even if it is typed in correctly
This post has been edited by AMDKilla: 22 January 2010 - 02:52 PM
#5
Re: screen lock
Posted 22 January 2010 - 06:53 PM
Quote
That's just cruel. I like it.
This post has been edited by artifex nex: 23 January 2010 - 01:52 AM
#6
Re: screen lock
Posted 22 January 2010 - 06:57 PM
artifex nex, on 23 Jan, 2010 - 12:53 AM, said:
Quote
That's just cruel. I like it.
One installation of XP I had would forget the password after coming back from standby, I had to restart to gain access. I was putting in the password correctly, but after every standby, it would forget the password, really annoying
#7
Re: screen lock
Posted 23 January 2010 - 03:43 AM
AMDKilla, on 22 Jan, 2010 - 05:57 PM, said:
OT, but that wouldn't have been a laptop perchance?
#8
Re: screen lock
Posted 23 January 2010 - 09:54 AM
#9
Re: screen lock
Posted 23 January 2010 - 09:58 AM
Quote
Careful there... talk like this could lead to this topic getting closed
Let's not give mods the false impression that we're talking about malware.
OP, why do you want to lock the screen, what are your intentions?
This post has been edited by LeisureProgrammer: 23 January 2010 - 10:16 AM
#10
Re: screen lock
Posted 23 January 2010 - 10:50 AM
dawmail333, on 23 Jan, 2010 - 09:43 AM, said:
AMDKilla, on 22 Jan, 2010 - 05:57 PM, said:
OT, but that wouldn't have been a laptop perchance?
Yea it was, I dont suppose you had the same problem?
LeisureProgrammer, on 23 Jan, 2010 - 03:58 PM, said:
Quote
Careful there... talk like this could lead to this topic getting closed
Let's not give mods the false impression that we're talking about malware.
OP, why do you want to lock the screen, what are your intentions?
I was looking for something similar a while ago, I was creating a custom interface for a gaming LAN, and didnt want to alter people's Windows installations, so they would run windows, and then my application would run on top, and log into a central server, which would then distribute updates, a bit like steam does, but a complete replacement frontend instead of just a shortcut app.
#11
Re: screen lock
Posted 23 January 2010 - 03:28 PM
http://www.codeproje...vb/vdialog.aspx
Once again, RESPONSIBLE use.
AMDKilla, on 23 Jan, 2010 - 09:50 AM, said:
dawmail333, on 23 Jan, 2010 - 09:43 AM, said:
AMDKilla, on 22 Jan, 2010 - 05:57 PM, said:
OT, but that wouldn't have been a laptop perchance?
Haha, this should finish my little OT streak, but whenever that happens, check your numlock. If it's turned itself on, it could be messing up your otherwise correct password.
#12
Re: screen lock
Posted 23 January 2010 - 03:42 PM
dawmail333, on 23 Jan, 2010 - 09:28 PM, said:
Well the numlock was set to always off in BIOS, and I did check things like that and caps lock.... nothing, all turned off
#13
Re: screen lock
Posted 23 January 2010 - 03:43 PM
#14
Re: screen lock
Posted 23 January 2010 - 04:05 PM
dawmail333, on 23 Jan, 2010 - 09:43 PM, said:
Na, I think it was the Biometrics software loaded onto there. Given that the software was written by HP, I half expected it to be the problem
Come to think of it, it wouldent log in with the fingerprint either, it never showed the parts on the logon screen for it after standby.
#15
Re: screen lock
Posted 24 January 2010 - 02:31 AM
how to restrict mouse to the form and how to disable all other screen rather then our form
#16
Re: screen lock
Posted 25 January 2010 - 12:08 AM
jeary, on 24 Jan, 2010 - 01:31 AM, said:
how to restrict mouse to the form and how to disable all other screen rather then our form
The BlockInput Function will disable the keyboard and mouse. There might be a way for it to only allow input to your form. Or you could always use Windows + L. Kinda fail proof.
Also do you mind not putting your comments in [code] tags.
|
|

New Topic/Question
Reply




MultiQuote





|