Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Background Worker and Timer

i think :bg_DoWork(object sender, DoWorkEventArgs e){ ...... repeat = 10; int i = 0; int delay = 5; DateTime d=DateTime.Now; while ( i < repeat) { TimeSpan ts=d.Subtract(DateTime.Now); if(ts.Seconds==5) { //do some work ...

Revisions


  

Compare Revision Minor Date Status Editor
publicly available No 20-Nov-12 14:46 Available farshad saeidi
Updates in content. 12 changes had been made.
1 No 20-Nov-12 14:40 Available farshad saeidi

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

farshad saeidi

United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 20 Nov 2012
Article Copyright 2012 by farshad saeidi
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid