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

Joe
  • 3,002
  • 6
  • 43
  • 62
Gregor Menih
  • 4,719
  • 14
  • 43
  • 64
  • 2
    Possible duplicate: http://stackoverflow.com/questions/81150/best-way-to-tackle-global-hotkey-processing-in-c – dpp Dec 01 '11 at 08:08

2 Answers2

1

You need a keyboard-hook to catch the key combination

CloudyMarble
  • 36,156
  • 70
  • 93
  • 127
0

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

Sergey Kudriavtsev
  • 9,713
  • 4
  • 41
  • 63