简体   繁体   中英

Blocking specific keyboard key combinations using c#

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM