I have this code for a Windows service that I write in .NET ... However, the TICK function never runs regardless of the interval I entered in the tmrRun properties. What am I missing? Iβm sure that something stupid is something I donβt see.
thanks
Imports System.IO
Public Class HealthMonitor
Protected Overrides Sub OnStart(ByVal args() As String)
// Add code here to start your service. This method should set things
// in motion so your service can do its work.
tmrRun.Start()
End Sub
Protected Overrides Sub OnStop()
// Add code here to perform any tear-down necessary to stop your service.
tmrRun.Stop()
End Sub
Private Sub tmrRun_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrRun.Tick
//DO some stuff
End Sub
End Class
source
share