![]() |
Desktop Development »
Desktop Gadgets »
General
Intermediate
License: The Common Public License Version 1.0 (CPL)
RssToolbar - Desktop RSS TickerBy thund3rstruckStreams RSS headlines to the desktop |
C#, .NET (.NET 2.0), Win32, WinForms, Dev
|
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
RssToolbar is a tiny utility that docks itself to the top of the screen and scrolls RSS News Feeds in a stock style ticker to the desktop.
Several years ago, I developed this product to distribute to customer workstations, pre-configured to connect to our organization's RSS Feed as a simple and impressive way to keep clients informed of our latest news and alerts. Ultimately the product was pulled because most customers were using it to stream local weather, sports, and news to their desktops instead of the feeds we intended them to consume!
RssToolbar was originally developed in .NET v1.1 in Visual Basic. It was later hastily converted to C# but never peer reviewed or certified. I came across this old product a few days ago and decided to port it to .NET v2.0.
The RssToolbar uses an INI file (settings.ini) for configuration (yea, I told you this thing was OLD!). If you're using Vista, then you'll probably have to use Wordpad to open the settings.ini file since Vista doesn't seem to let you open *.ini files in Notepad. Below you can see the configuration:
[Feeds]
1=http://www.codeproject.com/webservices/articlerss.aspx?cat=1
2=http://rss.slashdot.org/Slashdot/slashdot
3=http://feeds.digg.com/digg/container/technology/popular.rss
4=http://feeds.gawker.com/lifehacker/full
5=http://feeds.gawker.com/kotaku/full
[Preferences]
speed=25
maxstories=10
maxheadlines=50
fontface=Arial
fontsize=14
The feeds section allows users to specify the feeds they want to stream in the ticker. At present, a maximum of 5 feeds are allowed and as long as the RSS Feed provider uses RSS Compliant XML documents, the ticker will be able to handle them.
Early versions of the .NET Framework had a 2,000 or so character limit on label controls so the maxstories/maxheadlines settings allowed you to get a nice variety of different feeds into the ticker before hitting the limit.
By right clicking in the ticker, you can expose a few options:
Below you can see the web page generated when you click the Launch option:

This is extremely simple stuff, probably not even worth mentioning really.
To fetch and parse the RSS feeds, I'm using a slightly modified version of RSS.NET.
To read the INI configuration file, I'm using a primitive IniDataReader class I wrote which uses Regular Expressions. The ticker itself is a basic panel, textbox, and label control wired to a timer. The timer's _Tick event is what actually creates the ticking sensation.
| You must Sign In to use this message board. | |||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 29 Jun 2009 Editor: Sean Ewington |
Copyright 2009 by thund3rstruck Everything else Copyright © CodeProject, 1999-2009 Web17 | Advertise on the Code Project |