开发者

How to disable a particular key press in .NET?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜