Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi How
Convert System.Windows.Forms.Shortcut into KeyData / KeyCode
in vb.net
Posted

1 solution

In general and also in a typical case — impossible, because there is no correspondence. The type System.Windows.Forms.Shortcut is enumeration with the members corresponding not just to one key code each, but to a combination of one, two, three or more key codes. Just look at the definition:
http://msdn.microsoft.com/en-us/library/system.windows.forms.shortcut.aspx[^].

In this way, this question makes no sense, and hence there is no need to do anything like that. If you want to ask what to do, you need to explain your ultimate goals.

—SA
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900