DoWork is this:
DoLengthyWork();
//this is never executed
if(bgWorker.CancellationPending)
{
MessageBox.Show("Up to here? ...");
e.Cancel = true;
}
I trigger the cancelation in with bgWorker.CancelAsync();
If bgWorker.CancellationPending cannot be reached because it's blocked by DoLengthyWork HOW can I stop the BackGround Worker ?