如何使用Windows键在我的应用 [英] How to use Windows Key in my Application
本文介绍了如何使用Windows键在我的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
像:
Windows Key + E
Opens a new Explorer Window
和
Windows Key + R
Displays the Run command
我如何使用Windows键在我的应用程序的KeyDown事件?
How can I use the Windows Key in a KeyDown event of my Application?
推荐答案
如果你想在你的事件处理程序处理这些按键,使用Keys.LWin和Keys.RWin
If you want to process these keys in your event handlers, use Keys.LWin and Keys.RWin
一般来说,我不会建议使用这些,因为未来版本的Windows可以引进新的快捷方式,将与你的组合干扰。
Generally I would not recommend using these, because future versions of Windows can introduce new shortcuts that will interfere with your combinations.
这篇关于如何使用Windows键在我的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文