Hi, look into codes below:
Sub Main()
Dim tmr As New Timers.Timer
tmr.Interval = TimeSpan.FromMinutes(5).TotalMilliseconds
tmr.Start()
'Do function
End Sub
As my program above, i set the time interval to every 5 minute which it will do the function. However, after 5 minites it does not affect any thing in my program, is that my coding wrong? or I had miss something? (I am using console application)