01-18-2012, 04:23 PM
Well, you can use the BackGround Worker Control to loop through this code without having any effect on the appearance of the application at all.
(See more information about a background worker here: <!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=jv4FdoaUMQE&feature=plcp&context=C322e31eUDOEgsToPDskK9c_-OCENEeHwzWSO_Mojs">http://www.youtube.com/watch?v=jv4FdoaU ... wzWSO_Mojs</a><!-- m -->)
And since you want the loop to constantly be running, create a timer with the interval of 1000 or something like that, and have the timer tick event call the DoWork() Function of the BackgroundWorker
(See more information about a background worker here: <!-- m --><a class="postlink" href="http://www.youtube.com/watch?v=jv4FdoaUMQE&feature=plcp&context=C322e31eUDOEgsToPDskK9c_-OCENEeHwzWSO_Mojs">http://www.youtube.com/watch?v=jv4FdoaU ... wzWSO_Mojs</a><!-- m -->)
And since you want the loop to constantly be running, create a timer with the interval of 1000 or something like that, and have the timer tick event call the DoWork() Function of the BackgroundWorker