Click here to Skip to main content
15,885,767 members
Articles / Multimedia / GDI+

Marching Ants

Rate me:
Please Sign up or sign in to vote.
4.93/5 (21 votes)
23 Jul 2008CPOL3 min read 65.2K   907   50  
Learn how to create marching ants easily and efficiently
namespace Selecter
{
    partial class Screen
    {
        /// <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.components = new System.ComponentModel.Container();
            this.Picture = new System.Windows.Forms.PictureBox();
            this.SelectRectangle = new System.Windows.Forms.Button();
            this.SelectEllipse = new System.Windows.Forms.Button();
            this.LoadImage = new System.Windows.Forms.Button();
            this.AntTimer = new System.Windows.Forms.Timer(this.components);
            this.Fill = new System.Windows.Forms.CheckBox();
            ((System.ComponentModel.ISupportInitialize)(this.Picture)).BeginInit();
            this.SuspendLayout();
            // 
            // Picture
            // 
            this.Picture.Location = new System.Drawing.Point(0, 0);
            this.Picture.Name = "Picture";
            this.Picture.Size = new System.Drawing.Size(583, 361);
            this.Picture.TabIndex = 1;
            this.Picture.TabStop = false;
            this.Picture.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Picture_MouseMove);
            this.Picture.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Picture_MouseDown);
            this.Picture.Paint += new System.Windows.Forms.PaintEventHandler(this.Picture_Paint);
            this.Picture.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Picture_MouseUp);
            // 
            // SelectRectangle
            // 
            this.SelectRectangle.Location = new System.Drawing.Point(13, 389);
            this.SelectRectangle.Name = "SelectRectangle";
            this.SelectRectangle.Size = new System.Drawing.Size(124, 39);
            this.SelectRectangle.TabIndex = 2;
            this.SelectRectangle.Text = "Select Rectangle";
            this.SelectRectangle.UseVisualStyleBackColor = true;
            this.SelectRectangle.Click += new System.EventHandler(this.SelectRectangle_Click);
            // 
            // SelectEllipse
            // 
            this.SelectEllipse.Location = new System.Drawing.Point(143, 389);
            this.SelectEllipse.Name = "SelectEllipse";
            this.SelectEllipse.Size = new System.Drawing.Size(124, 39);
            this.SelectEllipse.TabIndex = 3;
            this.SelectEllipse.Text = "Select Ellipse";
            this.SelectEllipse.UseVisualStyleBackColor = true;
            this.SelectEllipse.Click += new System.EventHandler(this.SelectEllipse_Click);
            // 
            // LoadImage
            // 
            this.LoadImage.Location = new System.Drawing.Point(448, 389);
            this.LoadImage.Name = "LoadImage";
            this.LoadImage.Size = new System.Drawing.Size(124, 39);
            this.LoadImage.TabIndex = 4;
            this.LoadImage.Text = "Load Image";
            this.LoadImage.UseVisualStyleBackColor = true;
            this.LoadImage.Click += new System.EventHandler(this.LoadImage_Click);
            // 
            // AntTimer
            // 
            this.AntTimer.Interval = 25;
            this.AntTimer.Tick += new System.EventHandler(this.AntTimer_Tick);
            // 
            // Fill
            // 
            this.Fill.AutoSize = true;
            this.Fill.Location = new System.Drawing.Point(273, 401);
            this.Fill.Name = "Fill";
            this.Fill.Size = new System.Drawing.Size(114, 17);
            this.Fill.TabIndex = 5;
            this.Fill.Text = "Fill Selected Area?";
            this.Fill.UseVisualStyleBackColor = true;
            // 
            // Screen
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(584, 464);
            this.Controls.Add(this.Fill);
            this.Controls.Add(this.LoadImage);
            this.Controls.Add(this.SelectEllipse);
            this.Controls.Add(this.SelectRectangle);
            this.Controls.Add(this.Picture);
            this.Name = "Screen";
            ((System.ComponentModel.ISupportInitialize)(this.Picture)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.PictureBox Picture;
        private System.Windows.Forms.Button SelectRectangle;
        private System.Windows.Forms.Button SelectEllipse;
        private System.Windows.Forms.Button LoadImage;
        private System.Windows.Forms.Timer AntTimer;
        private System.Windows.Forms.CheckBox Fill;
    }
}

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
Unknown
I have been coding the last several years for fun. I taught myself c# and have been enjoying it ever since.

Comments and Discussions