问题
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