Saturday, June 11, 2005 1:27 AM
Microsoft .NET Framework has KeyUp, KeyPress and KeyDown events. These events capture only limited character set. Also, Arrow keys do not fire KeyPress and KeyDown events, but it fires KeyUp event.
Now application needs to capture TAB/Arrow keys efectively, before any part of the application reads or fires any events. Also how to disable certain keys within an application?
To handle special key events at the form or control level, overrides protected ProcessCmdKey function as follow:
To handle special key events at an application level, implements IMessageFilter. This interface allows an application to capture a message before it is dispatched to a control or form:
Happy "Key" Coding :)