Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / C#

Windows RSS Reader Application Using Threads

Rate me:
Please Sign up or sign in to vote.
3.52/5 (13 votes)
7 Apr 2007CPOL2 min read 37.3K   363   31  
In this article, you will learn how to create an asynchronous RSS reader Windows application (using threads).
namespace WindowsApplication1
{
    partial class MainForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.tabCtrlMain = new System.Windows.Forms.TabControl();
            this.tabCodeProject = new System.Windows.Forms.TabPage();
            this.lstCodeProject = new System.Windows.Forms.ListView();
            this.Title = new System.Windows.Forms.ColumnHeader();
            this.Author = new System.Windows.Forms.ColumnHeader();
            this.Subject = new System.Windows.Forms.ColumnHeader();
            this.PublishedDate = new System.Windows.Forms.ColumnHeader();
            this.tabNews = new System.Windows.Forms.TabPage();
            this.lstAsp = new System.Windows.Forms.ListView();
            this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
            this.tabCsharp = new System.Windows.Forms.TabPage();
            this.lstCsharp = new System.Windows.Forms.ListView();
            this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
            this.tabSql = new System.Windows.Forms.TabPage();
            this.lstSql = new System.Windows.Forms.ListView();
            this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
            this.tabXML = new System.Windows.Forms.TabPage();
            this.lstXML = new System.Windows.Forms.ListView();
            this.columnHeader10 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader11 = new System.Windows.Forms.ColumnHeader();
            this.columnHeader12 = new System.Windows.Forms.ColumnHeader();
            this.tabCtrlMain.SuspendLayout();
            this.tabCodeProject.SuspendLayout();
            this.tabNews.SuspendLayout();
            this.tabCsharp.SuspendLayout();
            this.tabSql.SuspendLayout();
            this.tabXML.SuspendLayout();
            this.SuspendLayout();
            // 
            // tabCtrlMain
            // 
            this.tabCtrlMain.Controls.Add(this.tabCodeProject);
            this.tabCtrlMain.Controls.Add(this.tabNews);
            this.tabCtrlMain.Controls.Add(this.tabCsharp);
            this.tabCtrlMain.Controls.Add(this.tabSql);
            this.tabCtrlMain.Controls.Add(this.tabXML);
            this.tabCtrlMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabCtrlMain.Location = new System.Drawing.Point(0, 0);
            this.tabCtrlMain.Name = "tabCtrlMain";
            this.tabCtrlMain.SelectedIndex = 0;
            this.tabCtrlMain.Size = new System.Drawing.Size(798, 457);
            this.tabCtrlMain.TabIndex = 2;
            this.tabCtrlMain.SelectedIndexChanged += new System.EventHandler(this.tabCtrlMain_SelectedIndexChanged);
            // 
            // tabCodeProject
            // 
            this.tabCodeProject.Controls.Add(this.lstCodeProject);
            this.tabCodeProject.Location = new System.Drawing.Point(4, 22);
            this.tabCodeProject.Name = "tabCodeProject";
            this.tabCodeProject.Padding = new System.Windows.Forms.Padding(3);
            this.tabCodeProject.Size = new System.Drawing.Size(783, 432);
            this.tabCodeProject.TabIndex = 0;
            this.tabCodeProject.Text = "CodeProject latest articles";
            this.tabCodeProject.UseVisualStyleBackColor = true;
            // 
            // lstCodeProject
            // 
            this.lstCodeProject.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.Title,
            this.Author,
            this.Subject,
            this.PublishedDate});
            this.lstCodeProject.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lstCodeProject.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            this.lstCodeProject.GridLines = true;
            this.lstCodeProject.Location = new System.Drawing.Point(3, 3);
            this.lstCodeProject.MultiSelect = false;
            this.lstCodeProject.Name = "lstCodeProject";
            this.lstCodeProject.Size = new System.Drawing.Size(777, 426);
            this.lstCodeProject.TabIndex = 0;
            this.lstCodeProject.UseCompatibleStateImageBehavior = false;
            this.lstCodeProject.View = System.Windows.Forms.View.Details;
            this.lstCodeProject.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lstCodeProject_MouseDoubleClick);
            // 
            // Title
            // 
            this.Title.Text = "Title";
            this.Title.Width = 355;
            // 
            // Author
            // 
            this.Author.Text = "Author";
            this.Author.Width = 118;
            // 
            // Subject
            // 
            this.Subject.Text = "Subject";
            this.Subject.Width = 155;
            // 
            // PublishedDate
            // 
            this.PublishedDate.Text = "Publish Date";
            this.PublishedDate.Width = 120;
            // 
            // tabNews
            // 
            this.tabNews.Controls.Add(this.lstAsp);
            this.tabNews.Location = new System.Drawing.Point(4, 22);
            this.tabNews.Name = "tabNews";
            this.tabNews.Size = new System.Drawing.Size(790, 431);
            this.tabNews.TabIndex = 2;
            this.tabNews.Text = "MSDN ASP.Net latest articles";
            this.tabNews.UseVisualStyleBackColor = true;
            // 
            // lstAsp
            // 
            this.lstAsp.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader1,
            this.columnHeader3,
            this.columnHeader4});
            this.lstAsp.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lstAsp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            this.lstAsp.GridLines = true;
            this.lstAsp.Location = new System.Drawing.Point(0, 0);
            this.lstAsp.Name = "lstAsp";
            this.lstAsp.Size = new System.Drawing.Size(790, 431);
            this.lstAsp.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.lstAsp.TabIndex = 1;
            this.lstAsp.UseCompatibleStateImageBehavior = false;
            this.lstAsp.View = System.Windows.Forms.View.Details;
            this.lstAsp.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lstAsp_MouseDoubleClick);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Text = "Title";
            this.columnHeader1.Width = 316;
            // 
            // columnHeader3
            // 
            this.columnHeader3.Text = "Description";
            this.columnHeader3.Width = 350;
            // 
            // columnHeader4
            // 
            this.columnHeader4.Text = "Publish Date";
            this.columnHeader4.Width = 120;
            // 
            // tabCsharp
            // 
            this.tabCsharp.Controls.Add(this.lstCsharp);
            this.tabCsharp.Location = new System.Drawing.Point(4, 22);
            this.tabCsharp.Name = "tabCsharp";
            this.tabCsharp.Size = new System.Drawing.Size(783, 432);
            this.tabCsharp.TabIndex = 3;
            this.tabCsharp.Text = "MSDN C#.Net latest articles";
            this.tabCsharp.UseVisualStyleBackColor = true;
            // 
            // lstCsharp
            // 
            this.lstCsharp.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader2,
            this.columnHeader5,
            this.columnHeader6});
            this.lstCsharp.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lstCsharp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            this.lstCsharp.GridLines = true;
            this.lstCsharp.Location = new System.Drawing.Point(0, 0);
            this.lstCsharp.Name = "lstCsharp";
            this.lstCsharp.Size = new System.Drawing.Size(783, 432);
            this.lstCsharp.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.lstCsharp.TabIndex = 2;
            this.lstCsharp.UseCompatibleStateImageBehavior = false;
            this.lstCsharp.View = System.Windows.Forms.View.Details;
            this.lstCsharp.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lstCsharp_MouseDoubleClick);
            // 
            // columnHeader2
            // 
            this.columnHeader2.Text = "Title";
            this.columnHeader2.Width = 316;
            // 
            // columnHeader5
            // 
            this.columnHeader5.Text = "Description";
            this.columnHeader5.Width = 350;
            // 
            // columnHeader6
            // 
            this.columnHeader6.Text = "Publish Date";
            this.columnHeader6.Width = 120;
            // 
            // tabSql
            // 
            this.tabSql.Controls.Add(this.lstSql);
            this.tabSql.Location = new System.Drawing.Point(4, 22);
            this.tabSql.Name = "tabSql";
            this.tabSql.Size = new System.Drawing.Size(783, 432);
            this.tabSql.TabIndex = 4;
            this.tabSql.Text = "MSDN SQL Server latest articles";
            this.tabSql.UseVisualStyleBackColor = true;
            // 
            // lstSql
            // 
            this.lstSql.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader7,
            this.columnHeader8,
            this.columnHeader9});
            this.lstSql.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lstSql.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            this.lstSql.GridLines = true;
            this.lstSql.Location = new System.Drawing.Point(0, 0);
            this.lstSql.Name = "lstSql";
            this.lstSql.Size = new System.Drawing.Size(783, 432);
            this.lstSql.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.lstSql.TabIndex = 2;
            this.lstSql.UseCompatibleStateImageBehavior = false;
            this.lstSql.View = System.Windows.Forms.View.Details;
            this.lstSql.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lstSql_MouseDoubleClick);
            // 
            // columnHeader7
            // 
            this.columnHeader7.Text = "Title";
            this.columnHeader7.Width = 316;
            // 
            // columnHeader8
            // 
            this.columnHeader8.Text = "Description";
            this.columnHeader8.Width = 350;
            // 
            // columnHeader9
            // 
            this.columnHeader9.Text = "Publish Date";
            this.columnHeader9.Width = 120;
            // 
            // tabXML
            // 
            this.tabXML.Controls.Add(this.lstXML);
            this.tabXML.Location = new System.Drawing.Point(4, 22);
            this.tabXML.Name = "tabXML";
            this.tabXML.Size = new System.Drawing.Size(783, 432);
            this.tabXML.TabIndex = 5;
            this.tabXML.Text = "MSDN XML latest articles";
            this.tabXML.UseVisualStyleBackColor = true;
            // 
            // lstXML
            // 
            this.lstXML.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader10,
            this.columnHeader11,
            this.columnHeader12});
            this.lstXML.Dock = System.Windows.Forms.DockStyle.Fill;
            this.lstXML.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            this.lstXML.GridLines = true;
            this.lstXML.Location = new System.Drawing.Point(0, 0);
            this.lstXML.Name = "lstXML";
            this.lstXML.Size = new System.Drawing.Size(783, 432);
            this.lstXML.Sorting = System.Windows.Forms.SortOrder.Ascending;
            this.lstXML.TabIndex = 2;
            this.lstXML.UseCompatibleStateImageBehavior = false;
            this.lstXML.View = System.Windows.Forms.View.Details;
            this.lstXML.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lstXML_MouseDoubleClick);
            // 
            // columnHeader10
            // 
            this.columnHeader10.Text = "Title";
            this.columnHeader10.Width = 316;
            // 
            // columnHeader11
            // 
            this.columnHeader11.Text = "Description";
            this.columnHeader11.Width = 350;
            // 
            // columnHeader12
            // 
            this.columnHeader12.Text = "Publish Date";
            this.columnHeader12.Width = 120;
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(798, 457);
            this.Controls.Add(this.tabCtrlMain);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.Name = "MainForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.tabCtrlMain.ResumeLayout(false);
            this.tabCodeProject.ResumeLayout(false);
            this.tabNews.ResumeLayout(false);
            this.tabCsharp.ResumeLayout(false);
            this.tabSql.ResumeLayout(false);
            this.tabXML.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.TabControl tabCtrlMain;
        private System.Windows.Forms.TabPage tabCodeProject;
        private System.Windows.Forms.TabPage tabNews;
        private System.Windows.Forms.ListView lstCodeProject;
        private System.Windows.Forms.ColumnHeader Title;
        private System.Windows.Forms.ColumnHeader Author;
        private System.Windows.Forms.ColumnHeader Subject;
        private System.Windows.Forms.ColumnHeader PublishedDate;
        private System.Windows.Forms.ListView lstAsp;
        private System.Windows.Forms.ColumnHeader columnHeader1;
        private System.Windows.Forms.ColumnHeader columnHeader3;
        private System.Windows.Forms.ColumnHeader columnHeader4;
        private System.Windows.Forms.TabPage tabCsharp;
        private System.Windows.Forms.TabPage tabSql;
        private System.Windows.Forms.TabPage tabXML;
        private System.Windows.Forms.ListView lstCsharp;
        private System.Windows.Forms.ColumnHeader columnHeader2;
        private System.Windows.Forms.ColumnHeader columnHeader5;
        private System.Windows.Forms.ColumnHeader columnHeader6;
        private System.Windows.Forms.ListView lstSql;
        private System.Windows.Forms.ColumnHeader columnHeader7;
        private System.Windows.Forms.ColumnHeader columnHeader8;
        private System.Windows.Forms.ColumnHeader columnHeader9;
        private System.Windows.Forms.ListView lstXML;
        private System.Windows.Forms.ColumnHeader columnHeader10;
        private System.Windows.Forms.ColumnHeader columnHeader11;
        private System.Windows.Forms.ColumnHeader columnHeader12;

    }
}

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
Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
ASP.net developer

Comments and Discussions