Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 438
  • Last Modified:

Programatically Add a Windows Shortcut Key using .NET

Hello,

I'm interested in how to Programatically Add a Windows Shortcut Key with .NET.  The shortcuts I'm referring to are not the icon kind, but the Key (or Key Chord) kind.  If you view the properties of any executable (Calc.exe for example - See picture), the third text box down says Shortcut Key.  You can manually enter in a Key Chord, but how do I do this Programatically?

Thanks!
calcProperties.jpg
0
Cayman21
Asked:
Cayman21
2 Solutions
 
elimesikaCommented:
HI

Basically, you should use WIN32 API  RegisterHotKey

http://www.codeproject.com/KB/miscctrl/ashsimplehotkeys.aspx
0
 
David Johnson, CD, MVPOwnerCommented:
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now