Is there a way to disable the standard built-in function of the Windows-Key (open the start-menu) and activate instead of that function for instance a delegate or an event in C#? I want to use this as an additional key in a full-screen app.
Asked
Active
Viewed 164 times
1
-
Maybe overriding the key down event and checking if it is the windows key? – SirDemon Aug 30 '09 at 14:45
-
3I'm not sure, but I don't think the OnKeyDown-method is called if the user uses the Windows-key. I think the solution will be closer to keyboard-hooking. – Willem Van Onsem Aug 30 '09 at 14:48
1 Answers
5

Rushyo
- 7,495
- 4
- 35
- 42
-
Is it possible that by using this method, you don't surpress the standard function of the Windows-Button, so that both functions (opening the startmenu, and the programmer-defined function) will be called. – Willem Van Onsem Aug 30 '09 at 14:58
-
2A global hook (like the one specified) will suppress standard system functionality. An application level hook will not. – Rushyo Aug 30 '09 at 15:01