Friday, October 16, 2009

Timer on Windows Service in Visual Studio 2008


We do not use the timer System.Windows.Forms.Timer that is in the Toolbox during adding a timer to the Windows Service. This doesn’t work for Windows Services. We will have to use the System.Timers.Timer instead of System.Windows.Forms.Timer. And the event we will use Timer1_Elapsed instead of Timer1_Tick.

No comments: