Alternative to Application.ProcessMessages

From: Christakis John (you'll_just_send_spam_at_me.if.I.tell)
Date: 11/22/03


Date: Sat, 22 Nov 2003 23:18:04 +1000

Hiya,

I have a small form with a progress bar and a Cancel button. The form is
updated by the main form with a number and this becomes the position of the
status bar. The main program may run a loop with a few thousand iterations
and update the progress bar form eact time.

I was using progressbar1.Update to update it rather than
Application.ProcessMessages, but I am not capturing the Cancel button click.
Is there a way to capture the button click without using App.PM?

ta,
cj


Quantcast