Timer class of System.Windows.Forms "is optimized for use in Windows Forms applications and must be used in a window.", so that's the explanation. There is also Timer class of System.Threading and System.Timers.
Both Threading/Timers timer runs in a threadpool thread. Timers.Timer can be provided a UI SynchronizingObject that the callback will marshal the event to.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.