The nicest solution I've found is http://bloggablea.wordpress.com/2007/05/01/global-hotkeys-with-net/
Hotkey hk = new Hotkey(); hk.KeyCode = Keys.1; hk.Windows = true; hk.Pressed += delegate { Console.WriteLine("Windows+1 pressed!"); }; hk.Register(myForm);
Note how you can set different lambdas to different hotkeys
2.1m questions
2.1m answers
60 comments
57.0k users