Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 21st, 2006, 7:14 AM   #1
john Wesley
Hobbyist Programmer
 
john Wesley's Avatar
 
Join Date: May 2006
Location: United Kingdom
Posts: 119
Rep Power: 3 john Wesley is on a distinguished road
Send a message via MSN to john Wesley Send a message via Yahoo to john Wesley
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..
john Wesley is offline   Reply With Quote
Old Aug 21st, 2006, 9:31 AM   #2
melbolt
Professional Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 253
Rep Power: 4 melbolt is on a distinguished road
System.Threading.Thread.Sleep(timeInMilliseconds)
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:52 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC