![]() |
pause \ stop background worker
Within my program im using a background worker, using this helped me solve many problems about my application but in return has left me with one or two new ones.
Id like to know how to 'pause' or 'suspend' a background worker that 'IsBusy'. I dont know if you can do this ^^, But I know it can be stopped. I found that when calling it to 'cancelasync' an error occurs that when debugged comes down to 'the background worker may not support cancellation', However using the MSDN lib I found info on the call to something like 'CanBackgroundworkerCancel' (boolean). Using this doesnt achieve anything for me, It tends to either still throw an error, or simply do nothing at all. Any suggestions? |
System.Threading.Thread.Sleep(timeInMilliseconds)
|
| All times are GMT -5. The time now is 12:44 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC