Click here to Skip to main content
15,896,111 members
Articles / Programming Languages / XML

RSS Feed Link Reader

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
5 Jun 2008CPOL4 min read 59.2K   536   17  
This article discusses the construction of a simple application that may be used to view RSS feeds from the desktop.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class frmRss
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(frmRss))
        Me.toolStrip1 = New System.Windows.Forms.ToolStrip
        Me.tsRssLocation = New System.Windows.Forms.ToolStripTextBox
        Me.tsRssGo = New System.Windows.Forms.ToolStripButton
        Me.tsCboFeeds = New System.Windows.Forms.ToolStripComboBox
        Me.splitContainer1 = New System.Windows.Forms.SplitContainer
        Me.tvwRss = New System.Windows.Forms.TreeView
        Me.webBrowser1 = New System.Windows.Forms.WebBrowser
        Me.toolStrip1.SuspendLayout()
        Me.splitContainer1.Panel1.SuspendLayout()
        Me.splitContainer1.Panel2.SuspendLayout()
        Me.splitContainer1.SuspendLayout()
        Me.SuspendLayout()
        '
        'toolStrip1
        '
        Me.toolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.tsRssLocation, Me.tsRssGo, Me.tsCboFeeds})
        Me.toolStrip1.Location = New System.Drawing.Point(0, 0)
        Me.toolStrip1.Name = "toolStrip1"
        Me.toolStrip1.Size = New System.Drawing.Size(762, 25)
        Me.toolStrip1.TabIndex = 2
        Me.toolStrip1.Text = "toolStrip1"
        '
        'tsRssLocation
        '
        Me.tsRssLocation.Name = "tsRssLocation"
        Me.tsRssLocation.Size = New System.Drawing.Size(400, 25)
        Me.tsRssLocation.Text = "http://rss.news.yahoo.com/rss/topstories"
        '
        'tsRssGo
        '
        Me.tsRssGo.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image
        Me.tsRssGo.Image = CType(resources.GetObject("tsRssGo.Image"), System.Drawing.Image)
        Me.tsRssGo.ImageTransparentColor = System.Drawing.Color.Magenta
        Me.tsRssGo.Name = "tsRssGo"
        Me.tsRssGo.Size = New System.Drawing.Size(23, 22)
        Me.tsRssGo.Text = "rssGo"
        '
        'tsCboFeeds
        '
        Me.tsCboFeeds.Items.AddRange(New Object() {"http://rss.news.yahoo.com/rss/topstories", "http://rss.news.yahoo.com/rss/world", "http://rss.news.yahoo.com/rss/tech", "http://www.washingtonpost.com/wp-dyn/rss/politics/elections/index.xml", "http://www.washingtonpost.com/wp-dyn/rss/nation/index.xml", "http://feeds.washingtonpost.com/wp-dyn/rss/nation/science/index_xml", "http://www.nytimes.com/services/xml/rss/nyt/JobMarket.xml", "http://www.nytimes.com/services/xml/rss/nyt/Business.xml", "http://feeds.sfgate.com/sfgate/rss/feeds/bayarea", "http://feeds.sfgate.com/sfgate/rss/feeds/business", "http://feeds.sfgate.com/sfgate/rss/feeds/crime", "http://www.microsoft.com/windowsvista/rss.xml", "http://www.microsoft.com/atwork/community/rss.xml", "http://blogs.msdn.com/tiptalk/rss.xml", "http://msdn.microsoft.com/msdnmag/rss/newrss.aspx?issue=tue", "http://msdn.microsoft.com/msdnmag/rss/newrss.aspx"})
        Me.tsCboFeeds.Name = "tsCboFeeds"
        Me.tsCboFeeds.Size = New System.Drawing.Size(300, 25)
        '
        'splitContainer1
        '
        Me.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.splitContainer1.Location = New System.Drawing.Point(0, 25)
        Me.splitContainer1.Name = "splitContainer1"
        '
        'splitContainer1.Panel1
        '
        Me.splitContainer1.Panel1.AutoScroll = True
        Me.splitContainer1.Panel1.Controls.Add(Me.tvwRss)
        '
        'splitContainer1.Panel2
        '
        Me.splitContainer1.Panel2.Controls.Add(Me.webBrowser1)
        Me.splitContainer1.Size = New System.Drawing.Size(762, 398)
        Me.splitContainer1.SplitterDistance = 251
        Me.splitContainer1.TabIndex = 4
        '
        'tvwRss
        '
        Me.tvwRss.Dock = System.Windows.Forms.DockStyle.Fill
        Me.tvwRss.Location = New System.Drawing.Point(0, 0)
        Me.tvwRss.Name = "tvwRss"
        Me.tvwRss.Size = New System.Drawing.Size(251, 398)
        Me.tvwRss.TabIndex = 0
        '
        'webBrowser1
        '
        Me.webBrowser1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.webBrowser1.Location = New System.Drawing.Point(0, 0)
        Me.webBrowser1.MinimumSize = New System.Drawing.Size(20, 20)
        Me.webBrowser1.Name = "webBrowser1"
        Me.webBrowser1.Size = New System.Drawing.Size(507, 398)
        Me.webBrowser1.TabIndex = 1
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(762, 423)
        Me.Controls.Add(Me.splitContainer1)
        Me.Controls.Add(Me.toolStrip1)
        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
        Me.Name = "Form1"
        Me.Text = "RSS Feed Reader"
        Me.toolStrip1.ResumeLayout(False)
        Me.toolStrip1.PerformLayout()
        Me.splitContainer1.Panel1.ResumeLayout(False)
        Me.splitContainer1.Panel2.ResumeLayout(False)
        Me.splitContainer1.ResumeLayout(False)
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Private WithEvents toolStrip1 As System.Windows.Forms.ToolStrip
    Private WithEvents tsRssLocation As System.Windows.Forms.ToolStripTextBox
    Private WithEvents tsRssGo As System.Windows.Forms.ToolStripButton
    Private WithEvents tsCboFeeds As System.Windows.Forms.ToolStripComboBox
    Private WithEvents splitContainer1 As System.Windows.Forms.SplitContainer
    Private WithEvents tvwRss As System.Windows.Forms.TreeView
    Private WithEvents webBrowser1 As System.Windows.Forms.WebBrowser

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions