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.
精彩评论