You could pause the thread but it rather make me think about a Windows
service. What are you trying to do exactly ?
--
Patrice
"elziko" <elziko@yahoo.c o.uk> a écrit dans le message de news: uxno2JWhGHA.764 @TK2MSFTNGP03.p hx.gbl...[color=blue]
> Is there any way I can suspend a System.Componen tModel.Backgrou ndWorker to
> enable me to provide pause functionality?
>
> TIA
>[/color]
Patrice wrote:[color=blue]
> You could pause the thread but it rather make me think about a Windows
> service. What are you trying to do exactly ?[/color]
I just have some code that takes a long time to finish and locks up the user
interface. The user has the rquirement to be able to cancel this code or
pause it.
You say I can pause the thread but I don't see how. The BackgroundWorke r
class has a CancelAsync method but no "Suspend" method to match it. Also it
doesn't seem to give me anyway of getting a reference to the underlying
Thread that it creates so that I can call *it's* Suspend method.
Comment