Groups | Blog | Home
all groups > dotnet general > june 2005 >

dotnet general : Unable to fire Timer1_Tick in Windows Service Application


Mustaq
6/29/2005 7:24:02 PM
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,
Ravi
6/29/2005 8:42:09 PM
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

[quoted text, click to view]
Mustaq
6/30/2005 12:11:07 AM
Thanks a lot ravi works fine! Great!

[quoted text, click to view]
AddThis Social Bookmark Button