Solved

Timer_Elapsed

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 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