How does the use of a timer control in a C # Windows service program solve the problem?
Today, I studied the use of the Timer control in the next C # Windows service program.
After we have built a C # Windows service program, we usually think of the timer control when we use it, so to the tool to pull the timer control, double-click the Write event, set the time
But the service a run up, alas, how is the time to how did not carry out the incident?
Later, I found a lot of information to know that this timer control is WinForm, not in the C # Windows service program.
What to do ....
Open the Toolbox---right----the Select item---Find the Timer control, watch it, the timer control is system.timer. Not System.Windows.Form. Then Add.
Double click... Write event ...
OK, Fix it.
The use of the timer control in the C#windows service program is described here and is helpful for you to understand the use of the timer control in the C#windows service program.
C # Windows Services: Use of the Timer control in the C#windows service