K Keith Smith Feb 10, 2005 #1 Is there a sure-fire way to trap keypress events no matter which control has focus?
C Chris, Master of All Things Insignificant Feb 10, 2005 #2 Set the Form.KeyPreview to true and then handle the Form Keypress event. Hope this helps Chris
R Rachel Suddeth Feb 10, 2005 #3 There are some key events that still get swallowed by controls even when KeyPreview is true. If you really, really need to see all of these, you can override the ProcessCmdKey() method in the form. -Rachel
There are some key events that still get swallowed by controls even when KeyPreview is true. If you really, really need to see all of these, you can override the ProcessCmdKey() method in the form. -Rachel