C # Windows Services: Use of the Timer control in the C#windows service

Source: Internet
Author: User

Tags: ADA ges info Form control open BSP time load

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: