Thread Problem ?
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
Hello friends, We want to create background thread which run automatically in regular interval and run a particular sub ? please give your advice Thanks Manu
You might wanne check out this: ' initialize Private Timer_Queue As New System.Threading.Timer(New System.Threading.TimerCallback(AddressOf Timer_Queue_TimerCallBack), Nothing, System.Threading.Timeout.Infinite, Nothing) Private Const Timer_QueueInterval As Long = 250 ' at load or somewhere else... Timer_Queue.Change(0, Timer_QueueInterval) ' the worker Private Sub Timer_Queue_TimerCallBack(ByVal state As Object) ' do work End Sub enjoy.