Hello.
i want to drop in a timer for my windows service file which should run every 3 days. i imported the following namespaces,
Imports System.Threading.Timer
Imports System.Timers
but I am still having problems with the timer. I get an error on System.timers about...etc
I dropped a timer in and then took it out, nothing works.
here's the code (do I need to to put it in a sub...)
dim xy as new timeSpan(3,0,0)
system.timers.timer g = new system.timers.timer(xy.milliseconds)
AddHandler g.Elapsed, AddressOf TimerElapsed
g.enabled=true
thanks in advance.
i want to drop in a timer for my windows service file which should run every 3 days. i imported the following namespaces,
Imports System.Threading.Timer
Imports System.Timers
but I am still having problems with the timer. I get an error on System.timers about...etc
I dropped a timer in and then took it out, nothing works.
here's the code (do I need to to put it in a sub...)
dim xy as new timeSpan(3,0,0)
system.timers.timer g = new system.timers.timer(xy.milliseconds)
AddHandler g.Elapsed, AddressOf TimerElapsed
g.enabled=true
thanks in advance.