ASP.Net desktop News RSS Reader

kouts1
kouts1 used Ask the Experts™
on
I am given a project to create a windows desktop rss reader for the company I work for.  Basically it would be used on all pc's in the enterprise to announce or alert users.  I need this to be an application not a web form.  I have looked online and all I see are web based examples.  Any ideas or examples would be greatly appreciated.

Thank you,
Kouts1
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

Commented:
Open Source
WPF RSS Feed Reader
http://wpfrssfeedreader.codeplex.com/
Top Expert 2011

Commented:
also opensource
PaperBoy - WPF rss reader
http://paperboy.codeplex.com/

Author

Commented:
those are good.  But what I actually need is examples on how to create a kind of ticker that scrolls on top of your desktop.  

Thanks,
Gus
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

Top Expert 2011

Commented:
like windows 7 gadgets?

Author

Commented:
Yes similar solution or it could be a desktop app that uses xml files to render the feeds as a scrolling ticker accross the screen
Senior Team Manager
Commented:


Hi,

You can try the code below to read the RSS feed and display the content in WinForm. it is in VB.NET

drop a label (lblRssFeed) into a form and set AutoSize to false. expand the label in height and width.
drop a button (btnGetRss) into form

Imports System.Xml

Private Sub btnGetRss_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetRss.Click

        lblRssFeed.Text = ""

        ' Any RSS Feed URL
        Dim rssURL As String = "http://visualstudiomagazine.com/rss-feeds/code.aspx" 	
        ProcessRSSFeed(rssURL)
End Sub

Private Sub ProcessRSSFeed(ByVal rssURL As String)

        Dim myRequest As WebRequest = System.Net.WebRequest.Create(rssURL)
        Dim myResponse As WebResponse = myRequest.GetResponse()

        Dim rssStream As Stream = myResponse.GetResponseStream()
        Dim rssDoc As New XmlDocument()
        rssDoc.Load(rssStream)

        Dim rssItems As XmlNodeList = rssDoc.SelectNodes("rss/channel/item")

        Dim title As String = ""
        Dim link As String = ""
        Dim description As String = ""
        Dim i As Integer

        For i = 0 To rssItems.Count - 1
            Dim rssDetail As XmlNode
            rssDetail = rssItems.Item(i).SelectSingleNode("title")
            If rssDetail.Equals(Nothing) = False Then
                title = rssDetail.InnerText
            Else
                title = ""
            End If

            rssDetail = rssItems.Item(i).SelectSingleNode("link")
            If rssDetail.Equals(Nothing) = False Then
                link = rssDetail.InnerText
            Else
                link = ""
            End If

            rssDetail = rssItems.Item(i).SelectSingleNode("description")
            If rssDetail.Equals(Nothing) = False Then
                description = rssDetail.InnerText
            Else
                description = ""
            End If

            lblRssFeed.Text += "Title : " + title + Environment.NewLine
            lblRssFeed.Text += "URL : " + link + Environment.NewLine
            lblRssFeed.Text += "Description : " + description + Environment.NewLine + Environment.NewLine

        Next
End Sub

Open in new window

Hope this will help you.

Happy Programming.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial