One other thing I forgot to ask:
The code is on a UserControl which contains many controls.
Do I have to code each KeyUp or can I some how get the UserControl's KeyUp
event to catch them all?
I know I can make one method handle all the events, but is that necessary?
Guess I'm looking for a KeyPreview for a UserControl.
Thanks
" Just Me" <ne********@a-znet.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
When I need to cancel when Esc is pressed this is what I do:
In KeyUp I set a module level variable if Esc is pressed.
Where I want to check for cancel I do a DoEvents and then check that
variable.
This is probably a long loop so DoEvents is executed often and I takes a
performance hit.
Is there a better way?
Thanks