How to create a multi-thread .net timer

On 15 February 2011, in VB.net, by Himselff

<br />
Dim monTimer As System.Threading.Timer<br />
Dim monTimerCallBack As System.Threading.TimerCallback</p>
<p>'Configuration of the time that tick every 300 000 ms<br />
Dim myCall = New myProgram    'Name of your program here to call the sub<br />
myTimerCallBack = New System.Threading.TimerCallback(AddressOf myCall.myTimer_Tick)<br />
myTimer = New System.Threading.Timer(monTimerCallBack, vbNull, 300000, 300000)<br />

Tagged with:  

Comments are closed.