timer in backgroundworker thread

.paul.

Well-known member
Joined
May 22, 2007
Messages
212
Programming Experience
1-3
i've got a timer in a backgroundworker thread, but it doesn't work. what am i doing wrong? is there an alternative method?
 
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.
 
Back
Top