One other thing: System.Windows.Forms.Timer has a start/stop method. System.Threading.Timer does not.
You can change the duration between polls by calling tExport.Change() if you wish.
To Stop the timer, simply dispose it.
asp,
In creating the Timer class, you need to specify the stat object (which can be null if you don't need one), duration prior to the initial poll, and then the duration between polls.
For instance, if you wanted to start polling immediately, and then again every second, you'd write...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.