PC Review


Reply
Thread Tools Rate Thread

C# 2.0 - Ticker in console application, possible, how?

 
 
=?Utf-8?B?U3ZlaW4gRXJpaw==?=
Guest
Posts: n/a
 
      31st Aug 2006
Is it possible to use a ticker in a console-application? How can I do this?
 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      31st Aug 2006
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


 
Reply With Quote
 
Stoitcho Goutsev \(100\)
Guest
Posts: n/a
 
      31st Aug 2006
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.



--
Stoitcho Goutsev (100)

"Svein Erik" <(E-Mail Removed)> wrote in message
news:38801447-1802-48BC-9B10-(E-Mail Removed)...
> Is it possible to use a ticker in a console-application? How can I do
> this?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Console application. Console.Clear = IOException Dinsdale Microsoft VB .NET 6 14th Mar 2008 06:36 PM
ticker application fr a video kiran.kewl@gmail.com Microsoft C# .NET 1 24th Jul 2007 02:19 PM
RSS Software - Mighty Ticker, RSS Ticker RSS Expert Freeware 0 6th Aug 2006 05:06 AM
How to run a console application without showing the console screen? Tee Microsoft VB .NET 2 11th Feb 2005 06:22 AM
How to set a fixed line in a console application liek UNIX console AA Microsoft C# .NET 1 6th Dec 2003 02:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 PM.