I have a large do while loop running a marquee, how can I detect if my cancel
button has been pressed during the loop?
Key detection?
Form button or keyboard key.
Tried API no luck?
Thanks for helping!
Printable View
I have a large do while loop running a marquee, how can I detect if my cancel
button has been pressed during the loop?
Key detection?
Form button or keyboard key.
Tried API no luck?
Thanks for helping!
Just put a DoEvents statement inside the loop. That way whatever code you have in cancel buttons Click event will get a chance to execute.
------------------
Marty
Marty,
Thank you for the help!