Dim minutes As Integer = 5 ' change 5 into the count of minutes Dim t As New System.Timers.Timer(60000 * minutes) AddHandler t.Elapsed, AddressOf t_Elapsed t.Start() ' start the timer
Private Sub t_Elapsed(sender As Object, e As System.Timers.ElapsedEventArgs) ' this method will be called every 5 minutes End Sub
VB.NET
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)