Oh dear, I'm having a blank Monday and I'm struggling, help appreciated please!
So, I've got my "DoWork" method which then calls a series of loops. I have a cancel button, which activates the CancellationPending thread, which I can check in each of the loops and break from them. However, I want to return from the main DoWork method too obviously. Is there a way of doing this without checking the cancellation flag between each of the (large number of) loops that get called.
So, I've got my "DoWork" method which then calls a series of loops. I have a cancel button, which activates the CancellationPending thread, which I can check in each of the loops and break from them. However, I want to return from the main DoWork method too obviously. Is there a way of doing this without checking the cancellation flag between each of the (large number of) loops that get called.