Link to home
Start Free TrialLog in
Avatar of fernandovitale
fernandovitaleFlag for Argentina

asked on

Timer BackgroundWorker

I need to know how can i do a timer (minutes:seconds) with BackgroundWorker in VB.NET

Thanks
Avatar of wdosanjos
wdosanjos
Flag of United States of America image

Do you want a Timer to trigger a BackgroundWorker?  Please elaborate.
Avatar of Mike Tomlinson
Count up or Count down?

WinForms or WebForms?

A regular timer would probably work just as well...
Add a backgroundworker and a timer to the form.
Set the timer's interval (you can also set this in code)
In the Tick event of the timer, fire off the backgroundworker
PS> You will need to start the timer (repeatedly?) somewhere.
1. You could restart the timer when the backgroundworker completes
2. You can have the timer start based on another event (say a change in a label's text). In this case, check to see if the timer is enabled before enabling it again.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fernandovitale

ASKER

Thank Savant! yes.. that is what i want to do... works fine...

Sorry for my bad english.!