471,357 Members | 1,177 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

Unable to fire Timer1_Tick in Windows Service Application

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
Jul 22 '05 #1
2 5297
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

"Mustaq" wrote:
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

Jul 22 '05 #2
Thanks a lot ravi works fine! Great!

"Ravi" wrote:
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

"Mustaq" wrote:
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

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by James Proctor | last post: by
2 posts views Thread by Besta | last post: by
1 post views Thread by Reza Sadeghi | last post: by
1 post views Thread by James Proctor | last post: by
7 posts views Thread by Gordon Smith | last post: by
3 posts views Thread by tshad | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.