Block\Handle Keypress

Errods

Well-known member
Joined
Dec 17, 2007
Messages
71
Location
Kundapur, Karnataka, Udupi, India.
Programming Experience
1-3
Hi All,

Having some problems in handaling the press of a Windows key.


I got a form which locks the screen. All the key strokes are handled. All except the Windows Logo key which when pressed shows up the Start Menu and the taskbar comes on the form. the user can open the Task manager or access the programs under the start menu. Hence blocking this key (i.e. Windows) is critical.

Please suggest something guys..........
 
You are probably going to have to override the wndproc() method and detect when the button is pressed. I have a feeling that it doesn't send the keypress to your application, though, so you might have to hook into the global OS keypress and detect when it is pressed.
 
Back
Top