RSS Ticker

Soldato
Joined
26 Dec 2003
Posts
16,522
Location
London
Spent yesterday afternoon writing this since I still hadn't played with some of the features in .NET 2.0:

screenshot.png


screenshot2.png


Automatically downloads headlines from Google News every 5 minutes and displays them in a ticker format that's rewindable, pausable and fast-forwardable. You can customise the RSS feed it displays and the time limit between "ticks" by editing the .config file, but I'm going to write a little options dialogue for it too.

Download

(Requires version 2.0 of the .NET framework, which you can get here if you don't have it already)

Tell me what you think!
 
Last edited:
Oh dearie me I shall hop on those right away!

Does .NET have anything in-built to convert HTML entities? I would've thought it would given its wealth of XML functions but I'll have a look.
 
Inquisitor said:
edit: It doesn't seem to like Slashdot's RSS feed. Which RSS versions does it support?

AFAIK it should support any. Perhaps it's Slashdot's use of the rdf namespace; I'll look into it.
 
Inquisitor said:
Just had a quick look a the code... you appear to be toggling the TopMost property of the form whenever any toolstrip button is clicked... did you mean to do that? :confused:

edit: nevermind, was looking at old source code :p

Yah that was the accident that caused it :k
 
Inquisitor said:
A quick note: as a general rule, all IDisposable objects should be Dispose()d of when you've finished using them, which is best done with a using block:
Code:
using (WebClient client = new WebClient())
{
    // stuff here
}
Otherwise, you could potentially end up with a memory leak as IDisposable objects tend to be memory hogs.

kk :cool:

Inquisitor said:
Also, encapsulate your fields :)

Yah I'm rubbish at organising stuff in terms of layout within a class :o

More tips please, I don't get to flex my C# muscles enough so I miss quite a bit of the best-practices stuff!
 
Inquisitor said:
Thanks :)

Just dug this PDF up, which was posted here a while ago. Has some good guidelines for C# coding style, which helps keep things consistent.

Linkage

I think I might've been the one who posted it - I've certainly posted it here before :)
 
Inquisitor said:
Rob, you gonna update that link? :p
I'd quite like to use this program. :)

A feature request/suggestion as well, if I may! Would be good if there was some sort of notification when a new feed item is received.

It already has a balloon notification when it updates :/
 
Back
Top Bottom