![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
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?
__________________
Mona Lisa must of had the highway blues you can tell by the way she smiles.. |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Feb 2005
Location: PA, USA
Posts: 253
Rep Power: 4
![]() |
System.Threading.Thread.Sleep(timeInMilliseconds)
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Option Button help | lpxxfaintxx | Visual Basic | 0 | Dec 3rd, 2005 12:22 PM |
| Help in QBASIC (I think it's similar to VB) | phoenix987 | Visual Basic | 3 | May 9th, 2005 1:33 PM |
| Help with a QBASIC program | phoenix987 | Other Programming Languages | 4 | May 5th, 2005 1:27 PM |
| Neat little program... | Sane | Python | 3 | Apr 10th, 2005 6:49 PM |
| Printing rich text with colored background | jarrod | C# | 1 | Feb 23rd, 2005 12:48 PM |