开发者

How to disable a particular key press in .NET?

开发者 https://www.devze.com 2022-12-09 20:15 出处:网络
I want to disable a particular key press in .NET(both VB.NET & C#开发者_开发技巧.NET).``You can disable a key globally (for all applications) by writing a Global Key Hook, or just within your appl

I want to disable a particular key press in .NET(both VB.NET & C#开发者_开发技巧.NET).``


You can disable a key globally (for all applications) by writing a Global Key Hook, or just within your application using a Local Key Hook.

Once you have hooked the incoming keys, you can ignore particular ones and not pass them on to windows / to the application.


If you want to disable for your own application only, You can also use IMessageFilter.

0

精彩评论

暂无评论...
验证码 换一张
取 消