Solved

Timer_Elapsed

Posted on 2010-09-19
1
301 Views
Last Modified: 2012-05-10
I am rewriting a Windows Service that must work on a timer.  The original Service seems to have the use of an Elapsed method for the timer using nothing more than Timer.Enabled = True.  Using VS 2010, I only have the use of the Tick method that does not work.  

My code is very simple at this point because I'm just trying to get the timer working.  I have attached the code.  Does anyone know how to gain use of the Elapsed method?

 serviceone.txt
0
Comment
Question by:sherbug1015
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 500 total points
ID: 33711793
I had various issues before with the standard timer classes in services. The specific timer that works best for services is the System.Threading.Timer. I recommend using that timer in your service.
System.Threading.Timer
http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx 
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question