Hack Forums
[.NET] [Tutorial]Using threading instead of timer[/Tutorial] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Tutorial]Using threading instead of timer[/Tutorial] (/showthread.php?tid=809547)

Pages: Pages 1 2


* - idb. - Apr 21, 2011

What the OP did was not wrong per say... just unnecessary. If you want a threads operation to repeat over and over you can just use a Do or Loop instead of using a timer. There is no point in using the timer in this instance because it's only being used as an AddressOf pointer for the threads routine. Timers are used for continuous operation and keeping track of a timespan.

But yeah, there is no reason to flame the OP because his code WILL work and IS the proper code under certain circumstances.