I know I can stop my thread by using the CancelAsync method of the
BackgroundWorke r but that requires me to monitor the value of the
CancellationPen ding property in my BackgroundWorke r.DoWork event.
This means that if the DoWork event is processing a single line of code then
my code must wait for this line to finish before it can check the value of
CancellationPen ding.
What if the user wants to cancel before I can check this value? Is there any
way to outright kill the thread, immediately without monitoring any
properties within DoWork?
TIA