Hello!
In my app I'm using a rather slow loop, which takes a lot of time. I'm using a form with a progressbar to show how much time it's left, but I would like to have a commandbutton which the user could press to abort the loop -a cancel button.

I'm not sure how to do this, since pressing a button triggers a new event, and my app is bussy carriyng out the event with the loop.

If you know how to do this, please help me!
Pentax