Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / C#

Moveable Resizable Objects

Rate me:
Please Sign up or sign in to vote.
4.98/5 (59 votes)
9 Oct 2009CPOL198 min read 125.2K   8.7K   178  
Here is a description of an extremely powerful mechanism that makes screen objects moveable and resizable.
namespace Test_MoveGraphLibrary
{
    partial class Form_About
    {
        /// <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 .labelTop = new System .Windows .Forms .Label ();
            this .labelPlots = new System .Windows .Forms .Label ();
            this .labelMain = new System .Windows .Forms .Label ();
            this .labelTown = new System .Windows .Forms .Label ();
            this .label5 = new System .Windows .Forms .Label ();
            this .label6 = new System .Windows .Forms .Label ();
            this .label7 = new System .Windows .Forms .Label ();
            this .label9 = new System .Windows .Forms .Label ();
            this .label10 = new System .Windows .Forms .Label ();
            this .label11 = new System .Windows .Forms .Label ();
            this .label12 = new System .Windows .Forms .Label ();
            this .labelDocument = new System .Windows .Forms .Label ();
            this .labelAbstract = new System .Windows .Forms .Label ();
            this .label1 = new System .Windows .Forms .Label ();
            this .labelFinancial = new System .Windows .Forms .Label ();
            this .SuspendLayout ();
            // 
            // labelTop
            // 
            this .labelTop .Location = new System .Drawing .Point (12, 12);
            this .labelTop .Name = "labelTop";
            this .labelTop .Size = new System .Drawing .Size (500, 38);
            this .labelTop .TabIndex = 0;
            this .labelTop .Text = "labelTop";
            // 
            // labelPlots
            // 
            this .labelPlots .Location = new System .Drawing .Point (163, 148);
            this .labelPlots .Name = "labelPlots";
            this .labelPlots .Size = new System .Drawing .Size (349, 38);
            this .labelPlots .TabIndex = 1;
            this .labelPlots .Text = "labelPlots";
            // 
            // labelMain
            // 
            this .labelMain .Location = new System .Drawing .Point (163, 60);
            this .labelMain .Name = "labelMain";
            this .labelMain .Size = new System .Drawing .Size (349, 38);
            this .labelMain .TabIndex = 2;
            this .labelMain .Text = "labelMain";
            // 
            // labelTown
            // 
            this .labelTown .Location = new System .Drawing .Point (163, 236);
            this .labelTown .Name = "labelTown";
            this .labelTown .Size = new System .Drawing .Size (349, 38);
            this .labelTown .TabIndex = 3;
            this .labelTown .Text = "labelTown";
            // 
            // label5
            // 
            this .label5 .AutoSize = true;
            this .label5 .ForeColor = System .Drawing .Color .Blue;
            this .label5 .Location = new System .Drawing .Point (12, 104);
            this .label5 .Name = "label5";
            this .label5 .Size = new System .Drawing .Size (123, 17);
            this .label5 .TabIndex = 4;
            this .label5 .Text = "Nodes and covers";
            // 
            // label6
            // 
            this .label6 .AutoSize = true;
            this .label6 .ForeColor = System .Drawing .Color .Blue;
            this .label6 .Location = new System .Drawing .Point (12, 60);
            this .label6 .Name = "label6";
            this .label6 .Size = new System .Drawing .Size (87, 17);
            this .label6 .TabIndex = 5;
            this .label6 .Text = "Main window";
            // 
            // label7
            // 
            this .label7 .AutoSize = true;
            this .label7 .ForeColor = System .Drawing .Color .Blue;
            this .label7 .Location = new System .Drawing .Point (12, 148);
            this .label7 .Name = "label7";
            this .label7 .Size = new System .Drawing .Size (67, 17);
            this .label7 .TabIndex = 6;
            this .label7 .Text = "Y(x) plots";
            // 
            // label9
            // 
            this .label9 .AutoSize = true;
            this .label9 .ForeColor = System .Drawing .Color .Blue;
            this .label9 .Location = new System .Drawing .Point (12, 236);
            this .label9 .Name = "label9";
            this .label9 .Size = new System .Drawing .Size (42, 17);
            this .label9 .TabIndex = 8;
            this .label9 .Text = "Town";
            // 
            // label10
            // 
            this .label10 .AutoSize = true;
            this .label10 .Location = new System .Drawing .Point (12, 354);
            this .label10 .Name = "label10";
            this .label10 .Size = new System .Drawing .Size (352, 17);
            this .label10 .TabIndex = 9;
            this .label10 .Text = "By Sergey Andreyev ( andreyev_sergey@yahoo.com )";
            // 
            // label11
            // 
            this .label11 .AutoSize = true;
            this .label11 .Location = new System .Drawing .Point (329, 372);
            this .label11 .Name = "label11";
            this .label11 .Size = new System .Drawing .Size (143, 17);
            this .label11 .TabIndex = 10;
            this .label11 .Text = "July 2009  (ver. 6.02)";
            // 
            // label12
            // 
            this .label12 .Location = new System .Drawing .Point (12, 284);
            this .label12 .Name = "label12";
            this .label12 .Size = new System .Drawing .Size (500, 38);
            this .label12 .TabIndex = 11;
            this .label12 .Text = "All programs and documents, related to the design of moveable / resizable objects" +
                ", are available at";
            // 
            // labelDocument
            // 
            this .labelDocument .AutoSize = true;
            this .labelDocument .Location = new System .Drawing .Point (53, 321);
            this .labelDocument .Name = "labelDocument";
            this .labelDocument .Size = new System .Drawing .Size (102, 17);
            this .labelDocument .TabIndex = 12;
            this .labelDocument .Text = "labelDocument";
            // 
            // labelAbstract
            // 
            this .labelAbstract .Location = new System .Drawing .Point (163, 104);
            this .labelAbstract .Name = "labelAbstract";
            this .labelAbstract .Size = new System .Drawing .Size (349, 38);
            this .labelAbstract .TabIndex = 13;
            this .labelAbstract .Text = "labelAbstract";
            // 
            // label1
            // 
            this .label1 .AutoSize = true;
            this .label1 .ForeColor = System .Drawing .Color .Blue;
            this .label1 .Location = new System .Drawing .Point (12, 192);
            this .label1 .Name = "label1";
            this .label1 .Size = new System .Drawing .Size (122, 17);
            this .label1 .TabIndex = 14;
            this .label1 .Text = "Financial graphics";
            // 
            // labelFinancial
            // 
            this .labelFinancial .Location = new System .Drawing .Point (163, 192);
            this .labelFinancial .Name = "labelFinancial";
            this .labelFinancial .Size = new System .Drawing .Size (349, 38);
            this .labelFinancial .TabIndex = 15;
            this .labelFinancial .Text = "labelFinancial";
            // 
            // Form_About
            // 
            this .AutoScaleDimensions = new System .Drawing .SizeF (8F, 16F);
            this .AutoScaleMode = System .Windows .Forms .AutoScaleMode .Font;
            this .ClientSize = new System .Drawing .Size (524, 398);
            this .Controls .Add (this .labelFinancial);
            this .Controls .Add (this .label1);
            this .Controls .Add (this .labelAbstract);
            this .Controls .Add (this .labelDocument);
            this .Controls .Add (this .label12);
            this .Controls .Add (this .label11);
            this .Controls .Add (this .label10);
            this .Controls .Add (this .label9);
            this .Controls .Add (this .label7);
            this .Controls .Add (this .label6);
            this .Controls .Add (this .label5);
            this .Controls .Add (this .labelTown);
            this .Controls .Add (this .labelMain);
            this .Controls .Add (this .labelPlots);
            this .Controls .Add (this .labelTop);
            this .FormBorderStyle = System .Windows .Forms .FormBorderStyle .FixedDialog;
            this .MaximizeBox = false;
            this .MinimizeBox = false;
            this .Name = "Form_About";
            this .Text = "About Test_MoveGraphLibrary";
            this .ResumeLayout (false);
            this .PerformLayout ();

        }

        #endregion

        private System .Windows .Forms .Label labelTop;
        private System .Windows .Forms .Label labelPlots;
        private System .Windows .Forms .Label labelMain;
        private System .Windows .Forms .Label labelTown;
        private System .Windows .Forms .Label label5;
        private System .Windows .Forms .Label label6;
        private System .Windows .Forms .Label label7;
        private System .Windows .Forms .Label label9;
        private System .Windows .Forms .Label label10;
        private System .Windows .Forms .Label label11;
        private System .Windows .Forms .Label label12;
        private System .Windows .Forms .Label labelDocument;
        private System .Windows .Forms .Label labelAbstract;
        private System .Windows .Forms .Label label1;
        private System .Windows .Forms .Label labelFinancial;
    }
}

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
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