Timer event in a separate thread

Is this anyone how to create a thread for a timer event. In the timer event of a Windows desktop application, a separate thread must be managed. Is it possible?

+3
source share
1 answer

Use System.Threading.Timerand the timer event will light up in the workflow.

The timer divide is set when the timer is built and cannot be changed. The method does not execute on the thread that created the timer; it runs in the ThreadPool thread supplied by the system.

I assume that what you mean by “must be controlled by a separate thread” is that the event handler runs on a thread other than the user interface thread.

+5

All Articles