Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Timer_Elapsed

Posted on 2010-09-19
1
Medium Priority
?
303 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

688 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