Solved

Timer_Elapsed

Posted on 2010-09-19
1
296 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now