Blocking specific keyboard key combinations using c#

为君一笑 提交于 2019-12-24 19:57:38

问题


I need to block certain keyboard shortcuts using c# in windows applications. All the key combinations will be specified in config file.

Like :

Alt + F4
Win + E
Win + L

What should be the configuration in app.config for this? And please help me with some sample code or examples.


回答1:


This is not something that can be accomplished system wide by the app.config of your application. You will need to use a tool such as SteadyState.

http://en.wikipedia.org/wiki/Windows_SteadyState



来源:https://stackoverflow.com/questions/1170102/blocking-specific-keyboard-key-combinations-using-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!