Is it possible to use a ticker in a console-application? How can I do this?
Marc Gravell - 31 Aug 2006 09:56 GMT
By ticker, do you mean a timer? If so, look at the System.Timers.Timer
class - but be aware that its .Elapsed event is fired on a different thread
(unlike the System.Windows.Forms.Timer class which fires on the UI thread),
so you may need to perform some thread sync code.
Marc
Stoitcho Goutsev (100) - 31 Aug 2006 15:07 GMT
Svein,
What is ticker? Is it a timer?
There are three timers in the .NET framework - Windows.Forms.Timer,
System.Threading.Timer and System.Timers.Timer. The first one cannot be used
because it needs a thread with a message loop to work, which console
application doesn't have. The other three can be used in any applications.

Signature
Stoitcho Goutsev (100)
> Is it possible to use a ticker in a console-application? How can I do
> this?