Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

Global Hotkeys in WPF

, 1 Nov 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
If you're truly targeting WPF, why not eliminate the dependency on WinForms and use System.Windows.Input.Key instead?

If you're truly targeting WPF, why not eliminate the dependency on WinForms and use System.Windows.Input.Key instead?

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Zac Bergquist

United States United States
No Biography provided

Comments and Discussions

 
GeneralOf course ;) - Thanks for your hint! PinmemberHenning Dieterichs9-Nov-11 11:34 
GeneralAnd of course after your improvement, the 3rd line in the 'U... PinmemberKamran Behzad7-Nov-11 14:08 
GeneralThank you for your improvement! I've updated the article. PinmemberHenning Dieterichs1-Nov-11 9:24 
GeneralConversions are available in System.Windows.Input.KeyInterop... PinmemberZac Bergquist1-Nov-11 5:55 
GeneralBecause the Key-Codes are different when converting to int. PinmemberHenning Dieterichs1-Nov-11 5:45 
Because the Key-Codes are different when converting to int.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 1 Nov 2011
Article Copyright 2011 by Zac Bergquist
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid