Click here to Skip to main content
15,905,877 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Lock Monitor, Keyboad and Mouse - How??? Pin
Dave Kreskowiak10-Jul-04 14:31
mveDave Kreskowiak10-Jul-04 14:31 
GeneralRe: Lock Monitor, Keyboad and Mouse - How??? Pin
tommy_tanaka11-Jul-04 7:39
tommy_tanaka11-Jul-04 7:39 
GeneralRe: Lock Monitor, Keyboad and Mouse - How??? Pin
Dave Kreskowiak11-Jul-04 8:55
mveDave Kreskowiak11-Jul-04 8:55 
GeneralRe: Lock Monitor, Keyboad and Mouse - How??? Pin
tommy_tanaka12-Jul-04 2:15
tommy_tanaka12-Jul-04 2:15 
GeneralRe: Lock Monitor, Keyboad and Mouse - How??? Pin
Dave Kreskowiak12-Jul-04 5:30
mveDave Kreskowiak12-Jul-04 5:30 
GeneralRe: Lock Monitor, Keyboad and Mouse - How??? Pin
tommy_tanaka12-Jul-04 5:50
tommy_tanaka12-Jul-04 5:50 
GeneralRe: Lock Monitor, Keyboad and Mouse - How??? Pin
Dave Kreskowiak12-Jul-04 13:28
mveDave Kreskowiak12-Jul-04 13:28 
GeneralRe: Lock Monitor, Keyboad and Mouse - How??? Pin
James Gohl14-Jul-04 8:58
James Gohl14-Jul-04 8:58 
I know an excellent method of locking the computer, although I'm not sure of any API's that might help, if you could purposely lock the machine or BSOD it (Blue Screen Of Death) - would that be helpful? lol. Try this: On Windows 98 goto Start, Run and type con/con and you get a nice BSOD! hehe Big Grin | :-D

Or... alternatively you could try my more serious solution:

- Set the border of the form to 0 so it has no title bar etc...
- Make the form top-most using the SetWindowPos API
- Disable keyboard and mouse input using the BlockInput API (with params TRUE or 1) call this in a 1 milli second timer!

Now the only key combo that works is C.A.D (or S.A.D as you lot call it) I know this is a pain in WinXP but, there is a way around that with a simple registry hack. Change following in the registry (if it doesn't exist - create the keys and the value)

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\

Create a REG_DWORD value under this key called DisableTaskmgr and set it to 1

Because there is no simple way to do this I have come up with a bit of a patchy method but it works. Watch out for that windows key Wink | ;)


Oh yeah one last thing make the background color of the form blue so it looks like a BSOD Big Grin | :-D

GeneralPrint to a File Pin
gthompson20059-Jul-04 19:11
gthompson20059-Jul-04 19:11 
GeneralRe: Print to a File Pin
Dave Kreskowiak10-Jul-04 14:06
mveDave Kreskowiak10-Jul-04 14:06 
GeneralRe: Print to a File Pin
gthompson200510-Jul-04 14:31
gthompson200510-Jul-04 14:31 
GeneralRe: Print to a File Pin
Dave Kreskowiak10-Jul-04 14:42
mveDave Kreskowiak10-Jul-04 14:42 
GeneralRe: Print to a File Pin
gthompson200510-Jul-04 15:01
gthompson200510-Jul-04 15:01 
Generalmodeless dialog Pin
nnjj9-Jul-04 6:14
nnjj9-Jul-04 6:14 
GeneralDebug levels Pin
Boniolopez9-Jul-04 3:30
Boniolopez9-Jul-04 3:30 
GeneralRe: Debug levels Pin
Dave Kreskowiak9-Jul-04 4:04
mveDave Kreskowiak9-Jul-04 4:04 
GeneralRe: Debug levels Pin
Boniolopez9-Jul-04 4:28
Boniolopez9-Jul-04 4:28 
GeneralRe: Debug levels Pin
Dave Kreskowiak9-Jul-04 5:50
mveDave Kreskowiak9-Jul-04 5:50 
Generalgive vb code Pin
nazerudeen9-Jul-04 2:15
nazerudeen9-Jul-04 2:15 
GeneralRe: give vb code Pin
Dave Kreskowiak9-Jul-04 3:45
mveDave Kreskowiak9-Jul-04 3:45 
Generalgive vb code Pin
nazerudeen9-Jul-04 1:54
nazerudeen9-Jul-04 1:54 
GeneralRe: give vb code Pin
Dave Kreskowiak9-Jul-04 3:42
mveDave Kreskowiak9-Jul-04 3:42 
GeneralPassing Parameter value from VB.net to MySql Pin
Member 12217979-Jul-04 1:39
Member 12217979-Jul-04 1:39 
GeneralRe: Passing Parameter value from VB.net to MySql Pin
The Man from U.N.C.L.E.19-Jul-04 7:24
The Man from U.N.C.L.E.19-Jul-04 7:24 
GeneralRe: Passing Parameter value from VB.net to MySql Pin
Member 122179719-Jul-04 16:26
Member 122179719-Jul-04 16:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.