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:
Post a Comment