Cancelling a background worker
-
It's me again:-O I'm having a lot of trouble today:sigh:
backgroundWorker1.CancelAsync();
I'm using the do work method for searching and it just refuses to cancel:confused:
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
you must first set the WorkerSupportsCancellation Property of BackgroungWorker instance to true. then you can cancel it good luck :)
-
you must first set the WorkerSupportsCancellation Property of BackgroungWorker instance to true. then you can cancel it good luck :)
Hessam Jalali wrote:
you must first set the WorkerSupportsCancellation Property of BackgroungWorker instance to true.
C'mon, I might have screwed up a bit lately but I'm not that stupid:doh: OF COURSE I DID! Yet, it's not working:~ Thanks anyways Hessam:->
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
-
Hessam Jalali wrote:
you must first set the WorkerSupportsCancellation Property of BackgroungWorker instance to true.
C'mon, I might have screwed up a bit lately but I'm not that stupid:doh: OF COURSE I DID! Yet, it's not working:~ Thanks anyways Hessam:->
Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)
really sorry, I didn't mean that ,I make these type of careless mistakes alot myself can you send some code?
-
really sorry, I didn't mean that ,I make these type of careless mistakes alot myself can you send some code?