I think I would "pause" the processing in several locations. Once the processing is paused the cancel.click() should fire.
Hope this helps.
Einar
>Hi,
>
>I want to have a status dialog form that offers a cancel button while processing. As the process may take some time I want the user to be able to click the cancel button to stop the process.
>
>But when I have the process running the enabled cancel button does not respond to clicks, as the in process code is running.
>
>Does anyone have any techniques on achieving this ?
>
>Thank you,
>Lee Hockley
Semper ubi sub ubi.