将快捷方式转换为KeyData或KeyCode [英] Convert Shortcut into KeyData or KeyCode

查看:82
本文介绍了将快捷方式转换为KeyData或KeyCode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 怎么
将System.Windows.Forms.Shortcut转换为KeyData/KeyCode
在vb.net

Hi How
Convert System.Windows.Forms.Shortcut into KeyData / KeyCode
in vb.net

推荐答案

中,通常也是典型的情况-不可能,因为没有对应关系.类型System.Windows.Forms.Shortcut是一种枚举,其成员不仅对应于每个键控代码,而且还对应于一个,两个,三个或更多键控代码的组合.只要看一下定义:
http://msdn.microsoft.com/en-us/library/system. windows.forms.shortcut.aspx [ ^ ].

这样,这个问题就没有意义了,因此不需要做任何类似的事情.如果您想问该怎么做,则需要解释自己的最终目标.

—SA
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


这篇关于将快捷方式转换为KeyData或KeyCode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆