The KeyDown event triggers for all the keys where as KeyPress only works for the character keys.
For example:
If you press Key A, then it will fire KeyDown as well as KeyPress event.
If you press Shift,Ctrl, Escape or BackSpace keys then only KeyDown is the only
Refer:MSDN Link
For example:
If you press Key A, then it will fire KeyDown as well as KeyPress event.
If you press Shift,Ctrl, Escape or BackSpace keys then only KeyDown is the only
Refer:MSDN Link
No comments:
Post a Comment