DELETE button not captured by KeyPress event
June 17th, 2010A small but important thing – if you want to capture pressing the DELETE button in a WinForms project, you’ll need to do it in the KeyDown or KeyUp event, not the KeyPress event. As the documentation (here and here) points out, KeyPress deals mostly with character keys, and non-character keys won’t raise it.
Leave a Reply
You must be logged in to post a comment.