Click here to Skip to main content
15,893,381 members
Articles / Desktop Programming / MFC

The Practical Guide to Multithreading - Part 2

Rate me:
Please Sign up or sign in to vote.
4.96/5 (119 votes)
12 Apr 2010CPOL43 min read 150.5K   5K   316  
More of practical situations to use multithreading!
namespace LargeFileReading_NET
{
    partial class frmMain
    {
        /// <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.btnFileLoadNoSpell = new System.Windows.Forms.Button();
            this.btnFileLoadWithSpell = new System.Windows.Forms.Button();
            this.btnExit = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // btnFileLoadNoSpell
            // 
            this.btnFileLoadNoSpell.Location = new System.Drawing.Point(52, 42);
            this.btnFileLoadNoSpell.Name = "btnFileLoadNoSpell";
            this.btnFileLoadNoSpell.Size = new System.Drawing.Size(181, 40);
            this.btnFileLoadNoSpell.TabIndex = 0;
            this.btnFileLoadNoSpell.Text = "Reading without Spell Check";
            this.btnFileLoadNoSpell.UseVisualStyleBackColor = true;
            this.btnFileLoadNoSpell.Click += new System.EventHandler(this.btnFileLoadNoSpell_Click);
            // 
            // btnFileLoadWithSpell
            // 
            this.btnFileLoadWithSpell.Location = new System.Drawing.Point(52, 98);
            this.btnFileLoadWithSpell.Name = "btnFileLoadWithSpell";
            this.btnFileLoadWithSpell.Size = new System.Drawing.Size(181, 40);
            this.btnFileLoadWithSpell.TabIndex = 0;
            this.btnFileLoadWithSpell.Text = "Reading with Spell Check";
            this.btnFileLoadWithSpell.UseVisualStyleBackColor = true;
            this.btnFileLoadWithSpell.Click += new System.EventHandler(this.btnFileLoadWithSpell_Click);
            // 
            // btnExit
            // 
            this.btnExit.Location = new System.Drawing.Point(77, 187);
            this.btnExit.Name = "btnExit";
            this.btnExit.Size = new System.Drawing.Size(122, 40);
            this.btnExit.TabIndex = 0;
            this.btnExit.Text = "E&xit";
            this.btnExit.UseVisualStyleBackColor = true;
            this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.CancelButton = this.btnExit;
            this.ClientSize = new System.Drawing.Size(284, 262);
            this.Controls.Add(this.btnExit);
            this.Controls.Add(this.btnFileLoadWithSpell);
            this.Controls.Add(this.btnFileLoadNoSpell);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
            this.Name = "frmMain";
            this.Text = "Large File Loading Example";
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Button btnFileLoadNoSpell;
        private System.Windows.Forms.Button btnFileLoadWithSpell;
        private System.Windows.Forms.Button btnExit;
    }
}

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)
India India
Started programming with GwBasic back in 1996 (Those lovely days!). Found the hidden talent!

Touched COBOL and Quick Basic for a while.

Finally learned C and C++ entirely on my own, and fell in love with C++, still in love! Began with Turbo C 2.0/3.0, then to VC6 for 4 years! Finally on VC2008/2010.

I enjoy programming, mostly the system programming, but the UI is always on top of MFC! Quite experienced on other environments and platforms, but I prefer Visual C++. Zeal to learn, and to share!

Comments and Discussions