1

I'm making a simple application. I have a button, that hides the application, and an icon is displayed in the Tray menu. What I want is, when the user presses a combination of buttons (let's say Ctrl + k), the application will open up again.

Thanks

Sastrija
  • 3,284
  • 6
  • 47
  • 64
Gregor Menih
  • 5,036
  • 14
  • 44
  • 66
  • 2
    Possible duplicate: http://stackoverflow.com/questions/81150/best-way-to-tackle-global-hotkey-processing-in-c – kazinix Dec 01 '11 at 08:08

2 Answers2

1

You need a keyboard-hook to catch the key combination

CloudyMarble
  • 36,908
  • 70
  • 97
  • 130
0

You might want to check the appropriate library at http://globalmousekeyhook.codeplex.com/

Sergey Kudriavtsev
  • 10,328
  • 4
  • 43
  • 68