tags:

views:

22

answers:

2

Is there an event for onAbort for the backgroundworker control?

+1  A: 

I don't believe so. When you call CancelAsync on the BackgroundWorker you need to handle the cancellation yourself. This then gets passed through to the RunWorkerCompleted event, however you can tell that it was cancelled through e.Cancelled.

GenericTypeTea
A: 

there is no specific event for "Cancel event".

You really should look at the MSDN documentation: http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.runworkercompleted.aspx

Matthieu