Unable to fire Timer1_Tick in Windows Service Application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I am unable to get Timer1_Tick event in Windows Service Application inspite
of setting following things
Timer1.enabled = True
Timer1.interval = 1000

Let me know how to resolve

Thanks &
Regards,
Mustaq
 
Hi,
There are three types of timers available in .Net Server Timers, Windows
Timers, and Thread Timers. For your service app you should use System.Timers
and not Windows timer(guess thats what ur using now). Include this timer by
using System.Timers namespace.

Hope this helps.
Thanks,
Ravi
 
Thanks a lot ravi works fine! Great!

Ravi said:
Hi,
There are three types of timers available in .Net Server Timers, Windows
Timers, and Thread Timers. For your service app you should use System.Timers
and not Windows timer(guess thats what ur using now). Include this timer by
using System.Timers namespace.

Hope this helps.
Thanks,
Ravi
 
Back
Top