Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a project what I want to do is when the use click a button to start processing some long procedure, while that the user able to stop this procedure at any time, what I am looking for is to fire another event on cancel, once the cancel event fired is to stop the process button event, is it possible to get the firing event and stop it. please if any one has a suggestion it is greeting and welcome, thank you in advance.
Posted

1 solution

Hi,

What you are talking can be fulfill using BackgroundWorker.

Please see below links,

MSDN on Background worker with example[^]

BackgroundWorker Threads and Supporting Cancel[^]

Hope it works for you,
Thanks.
 
Share this answer
 
Comments
Waleedkassem 18-Oct-12 1:58am    
thank you for help
AmitGajjar 18-Oct-12 3:01am    
Your welcome. glad!!! i answered your query.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900