Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
里面有Keys枚举.NET (System.Windows.Forms.Keys),但是找不到Exclamationmark(!)和冒号(:),怎么办?或者有没有办法自动将字母转换为Keys枚举,没有Enum.TryParse?感谢您的帮助,粉丝。
Keys
.NET
(System.Windows.Forms.Keys)
Exclamation
Enum.TryParse
它们属于喜欢等Oem类别。KeysKeys.Oem1
Oem
Keys.Oem1
你必须检查特殊的按键,比如 Shift 来查找你的角色。
冒号 (:) 它是两个键的组合,具体取决于配置键盘。所以也许你应该同时检测到按下的组合。同上!:Shift + 1