Esempio n. 1
0
        /// <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._sizerLight          = new C1.Win.C1Sizer.C1SizerLight(this.components);
            this._btnAddChildGroupBox = new System.Windows.Forms.Button();
            this._btnMoveButton       = new System.Windows.Forms.Button();
            this.groupBox1            = new System.Windows.Forms.GroupBox();
            this._btnResizeForm       = new System.Windows.Forms.Button();
            this._btnAddChildForm     = new System.Windows.Forms.Button();
            this.richTextBox1         = new System.Windows.Forms.RichTextBox();
            this.checkBox1            = new System.Windows.Forms.CheckBox();
            this.checkBox2            = new System.Windows.Forms.CheckBox();
            ((System.ComponentModel.ISupportInitialize)(this._sizerLight)).BeginInit();
            this.groupBox1.SuspendLayout();
            this.SuspendLayout();
            //
            // _sizerLight
            //
            this._sizerLight.ResizingFont += new C1.Win.C1Sizer.C1SizerLightEventHandler(this._sizerLight_ResizingFont);
            //
            // _btnAddChildGroupBox
            //
            this._btnAddChildGroupBox.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this._btnAddChildGroupBox.Location = new System.Drawing.Point(8, 16);
            this._btnAddChildGroupBox.Name     = "_btnAddChildGroupBox";
            this._btnAddChildGroupBox.Size     = new System.Drawing.Size(224, 24);
            this._btnAddChildGroupBox.TabIndex = 0;
            this._btnAddChildGroupBox.Text     = "Add button to group box";
            this._btnAddChildGroupBox.Click   += new System.EventHandler(this._btnAddChildGroupBox_Click);
            //
            // _btnMoveButton
            //
            this._btnMoveButton.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this._btnMoveButton.Location = new System.Drawing.Point(344, 224);
            this._btnMoveButton.Name     = "_btnMoveButton";
            this._btnMoveButton.Size     = new System.Drawing.Size(192, 24);
            this._btnMoveButton.TabIndex = 0;
            this._btnMoveButton.Text     = "Move This Button";
            this._btnMoveButton.Click   += new System.EventHandler(this._btnMoveButton_Click);
            //
            // groupBox1
            //
            this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
                this._btnAddChildGroupBox
            });
            this.groupBox1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.groupBox1.Location = new System.Drawing.Point(8, 224);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new System.Drawing.Size(240, 128);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop  = false;
            this.groupBox1.Text     = "Group Box";
            //
            // _btnResizeForm
            //
            this._btnResizeForm.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this._btnResizeForm.Location = new System.Drawing.Point(344, 200);
            this._btnResizeForm.Name     = "_btnResizeForm";
            this._btnResizeForm.Size     = new System.Drawing.Size(192, 24);
            this._btnResizeForm.TabIndex = 0;
            this._btnResizeForm.Text     = "Resize Form";
            this._btnResizeForm.Click   += new System.EventHandler(this._btnResizeForm_Click);
            //
            // _btnAddChildForm
            //
            this._btnAddChildForm.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this._btnAddChildForm.Location = new System.Drawing.Point(344, 176);
            this._btnAddChildForm.Name     = "_btnAddChildForm";
            this._btnAddChildForm.Size     = new System.Drawing.Size(192, 24);
            this._btnAddChildForm.TabIndex = 0;
            this._btnAddChildForm.Text     = "Add button to form";
            this._btnAddChildForm.Click   += new System.EventHandler(this._btnAddChildForm_Click);
            //
            // richTextBox1
            //
            this.richTextBox1.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.richTextBox1.Location = new System.Drawing.Point(8, 8);
            this.richTextBox1.Name     = "richTextBox1";
            this.richTextBox1.Size     = new System.Drawing.Size(528, 160);
            this.richTextBox1.TabIndex = 3;
            this.richTextBox1.Text     = @"Using C1SizerLight i seasy: just add one to a form, set the Enabled property to true, and all controls on the form will be resized automatically with the form.

Fonts are also resized, depending on the setting of the C1SizerLigth.ResizeFonts property. 

If you want to prevent certain controls (e.g. this one) from having their fonts resized, use the ""ResizingFont"" event and set the Cancel property to true.

When you add or resize controls at runtime, using code, remember to set the C1SizerLigth.Enabled property to false before the changes, then back to true after the changes. This will force the component to update its internal layout information.";
            //
            // checkBox1
            //
            this.checkBox1.Font            = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.checkBox1.Location        = new System.Drawing.Point(8, 176);
            this.checkBox1.Name            = "checkBox1";
            this.checkBox1.Size            = new System.Drawing.Size(152, 16);
            this.checkBox1.TabIndex        = 4;
            this.checkBox1.Text            = "C1SizerLight Enabled";
            this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
            //
            // checkBox2
            //
            this.checkBox2.Font            = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.checkBox2.Location        = new System.Drawing.Point(8, 200);
            this.checkBox2.Name            = "checkBox2";
            this.checkBox2.Size            = new System.Drawing.Size(152, 16);
            this.checkBox2.TabIndex        = 4;
            this.checkBox2.Text            = "Resize Fonts";
            this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
            //
            // Form1
            //
            this._sizerLight.SetAutoResize(this, true);
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.ClientSize        = new System.Drawing.Size(544, 357);
            this.Controls.AddRange(new System.Windows.Forms.Control[] {
                this.checkBox1,
                this.richTextBox1,
                this.groupBox1,
                this._btnMoveButton,
                this._btnResizeForm,
                this._btnAddChildForm,
                this.checkBox2
            });
            this.Font          = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.Name          = "Form1";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text          = "C1SizerLight: Add and manage controls at runtime";
            ((System.ComponentModel.ISupportInitialize)(this._sizerLight)).EndInit();
            this.groupBox1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Esempio n. 2
0
 /// <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.toolBar1        = new System.Windows.Forms.ToolBar();
     this.toolBarButton1  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton3  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton4  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton6  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton8  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton9  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton10 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton11 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton12 = new System.Windows.Forms.ToolBarButton();
     this.button1         = new System.Windows.Forms.Button();
     this._sizerLight     = new C1.Win.C1Sizer.C1SizerLight(this.components);
     this.panel1          = new System.Windows.Forms.Panel();
     this.label1          = new System.Windows.Forms.Label();
     this.button2         = new System.Windows.Forms.Button();
     this.button3         = new System.Windows.Forms.Button();
     this.button4         = new System.Windows.Forms.Button();
     this.button5         = new System.Windows.Forms.Button();
     this.button6         = new System.Windows.Forms.Button();
     this.button7         = new System.Windows.Forms.Button();
     this.button8         = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this._sizerLight)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // toolBar1
     //
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton1,
         this.toolBarButton2,
         this.toolBarButton3,
         this.toolBarButton4,
         this.toolBarButton5,
         this.toolBarButton6,
         this.toolBarButton7,
         this.toolBarButton8,
         this.toolBarButton9,
         this.toolBarButton10,
         this.toolBarButton11,
         this.toolBarButton12
     });
     this.toolBar1.ButtonSize     = new System.Drawing.Size(30, 36);
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(376, 39);
     this.toolBar1.TabIndex       = 0;
     //
     // toolBarButton1
     //
     this.toolBarButton1.Text = "1";
     //
     // toolBarButton2
     //
     this.toolBarButton2.Text = "2";
     //
     // toolBarButton3
     //
     this.toolBarButton3.Text = "3";
     //
     // toolBarButton4
     //
     this.toolBarButton4.Text = "4";
     //
     // toolBarButton5
     //
     this.toolBarButton5.Text = "5";
     //
     // toolBarButton6
     //
     this.toolBarButton6.Text = "6";
     //
     // toolBarButton7
     //
     this.toolBarButton7.Text = "7";
     //
     // toolBarButton8
     //
     this.toolBarButton8.Text = "8";
     //
     // toolBarButton9
     //
     this.toolBarButton9.Text = "9";
     //
     // toolBarButton10
     //
     this.toolBarButton10.Text = "10";
     //
     // toolBarButton11
     //
     this.toolBarButton11.Text = "11";
     //
     // toolBarButton12
     //
     this.toolBarButton12.Text = "12";
     //
     // button1
     //
     this.button1.BackColor = System.Drawing.Color.Gold;
     this.button1.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(177)));
     this.button1.Location  = new System.Drawing.Point(8, 8);
     this.button1.Name      = "button1";
     this.button1.Size      = new System.Drawing.Size(172, 50);
     this.button1.TabIndex  = 0;
     this.button1.Text      = "One";
     this.button1.Click    += new System.EventHandler(this.button1_Click);
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.BlanchedAlmond;
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.label1,
         this.button1,
         this.button2,
         this.button3,
         this.button4,
         this.button5,
         this.button6,
         this.button7,
         this.button8
     });
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 39);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(376, 278);
     this.panel1.TabIndex = 1;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 232);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(352, 40);
     this.label1.TabIndex = 1;
     this.label1.Text     = "Resize the form and the buttons will be automatically resized. If the toolbar wra" +
                            "ps, that will also be taken into account.";
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // button2
     //
     this.button2.BackColor = System.Drawing.Color.Gold;
     this.button2.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(177)));
     this.button2.Location  = new System.Drawing.Point(8, 64);
     this.button2.Name      = "button2";
     this.button2.Size      = new System.Drawing.Size(172, 50);
     this.button2.TabIndex  = 0;
     this.button2.Text      = "Two";
     //
     // button3
     //
     this.button3.BackColor = System.Drawing.Color.Gold;
     this.button3.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(177)));
     this.button3.Location  = new System.Drawing.Point(8, 120);
     this.button3.Name      = "button3";
     this.button3.Size      = new System.Drawing.Size(172, 50);
     this.button3.TabIndex  = 0;
     this.button3.Text      = "Three";
     //
     // button4
     //
     this.button4.BackColor = System.Drawing.Color.Gold;
     this.button4.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(177)));
     this.button4.Location  = new System.Drawing.Point(8, 176);
     this.button4.Name      = "button4";
     this.button4.Size      = new System.Drawing.Size(172, 50);
     this.button4.TabIndex  = 0;
     this.button4.Text      = "Four";
     //
     // button5
     //
     this.button5.BackColor = System.Drawing.Color.Gold;
     this.button5.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(177)));
     this.button5.Location  = new System.Drawing.Point(192, 120);
     this.button5.Name      = "button5";
     this.button5.Size      = new System.Drawing.Size(172, 50);
     this.button5.TabIndex  = 0;
     this.button5.Text      = "Seven";
     //
     // button6
     //
     this.button6.BackColor = System.Drawing.Color.Gold;
     this.button6.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(177)));
     this.button6.Location  = new System.Drawing.Point(192, 64);
     this.button6.Name      = "button6";
     this.button6.Size      = new System.Drawing.Size(172, 50);
     this.button6.TabIndex  = 0;
     this.button6.Text      = "Six";
     //
     // button7
     //
     this.button7.BackColor = System.Drawing.Color.Gold;
     this.button7.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(177)));
     this.button7.Location  = new System.Drawing.Point(192, 176);
     this.button7.Name      = "button7";
     this.button7.Size      = new System.Drawing.Size(172, 50);
     this.button7.TabIndex  = 0;
     this.button7.Text      = "Eight";
     //
     // button8
     //
     this.button8.BackColor = System.Drawing.Color.Gold;
     this.button8.Font      = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(177)));
     this.button8.Location  = new System.Drawing.Point(192, 8);
     this.button8.Name      = "button8";
     this.button8.Size      = new System.Drawing.Size(172, 50);
     this.button8.TabIndex  = 0;
     this.button8.Text      = "Five";
     //
     // Form1
     //
     this._sizerLight.SetAutoResize(this, true);
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(376, 317);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.panel1,
         this.toolBar1
     });
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "C1SizerLight: Wrapping toolbar";
     ((System.ComponentModel.ISupportInitialize)(this._sizerLight)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Esempio n. 3
0
 /// <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();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
     this.toolBar1        = new System.Windows.Forms.ToolBar();
     this.toolBarButton1  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton3  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton4  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton6  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7  = new System.Windows.Forms.ToolBarButton();
     this.statusBar1      = new System.Windows.Forms.StatusBar();
     this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
     this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
     this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
     this.button1         = new System.Windows.Forms.Button();
     this.groupBox1       = new System.Windows.Forms.GroupBox();
     this.panel1          = new System.Windows.Forms.Panel();
     this.button7         = new System.Windows.Forms.Button();
     this.button6         = new System.Windows.Forms.Button();
     this.label2          = new System.Windows.Forms.Label();
     this.toolBar3        = new System.Windows.Forms.ToolBar();
     this.toolBarButton12 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton13 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton14 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton15 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton16 = new System.Windows.Forms.ToolBarButton();
     this.button8         = new System.Windows.Forms.Button();
     this.button9         = new System.Windows.Forms.Button();
     this.button2         = new System.Windows.Forms.Button();
     this.toolBar2        = new System.Windows.Forms.ToolBar();
     this.toolBarButton8  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton9  = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton10 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton11 = new System.Windows.Forms.ToolBarButton();
     this.button3         = new System.Windows.Forms.Button();
     this.button4         = new System.Windows.Forms.Button();
     this.button5         = new System.Windows.Forms.Button();
     this.button10        = new System.Windows.Forms.Button();
     this.radioButton1    = new System.Windows.Forms.RadioButton();
     this.label1          = new System.Windows.Forms.Label();
     this.radioButton2    = new System.Windows.Forms.RadioButton();
     this.radioButton3    = new System.Windows.Forms.RadioButton();
     this.pictureBox1     = new System.Windows.Forms.PictureBox();
     this.c1SizerLight1   = new C1.Win.C1Sizer.C1SizerLight(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
     this.groupBox1.SuspendLayout();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.c1SizerLight1)).BeginInit();
     this.SuspendLayout();
     //
     // toolBar1
     //
     this.toolBar1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton1,
         this.toolBarButton2,
         this.toolBarButton3,
         this.toolBarButton4,
         this.toolBarButton5,
         this.toolBarButton6,
         this.toolBarButton7
     });
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(488, 26);
     this.toolBar1.TabIndex       = 0;
     //
     // statusBar1
     //
     this.statusBar1.Location = new System.Drawing.Point(0, 279);
     this.statusBar1.Name     = "statusBar1";
     this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.statusBarPanel1,
         this.statusBarPanel2,
         this.statusBarPanel3
     });
     this.statusBar1.ShowPanels = true;
     this.statusBar1.Size       = new System.Drawing.Size(488, 22);
     this.statusBar1.TabIndex   = 1;
     this.statusBar1.Text       = "statusBar1";
     //
     // statusBarPanel1
     //
     this.statusBarPanel1.Text = "statusBarPanel1";
     //
     // statusBarPanel2
     //
     this.statusBarPanel2.Text = "statusBarPanel2";
     //
     // statusBarPanel3
     //
     this.statusBarPanel3.Text = "statusBarPanel3";
     //
     // button1
     //
     this.button1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.button1.Font     = new System.Drawing.Font("Tahoma", 6.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.button1.Location = new System.Drawing.Point(0, 26);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(48, 253);
     this.button1.TabIndex = 2;
     this.button1.Text     = "Docked Left";
     //
     // groupBox1
     //
     this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.panel1,
         this.button2,
         this.toolBar2,
         this.button3,
         this.button4,
         this.button5,
         this.button10
     });
     this.groupBox1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.groupBox1.Location = new System.Drawing.Point(54, 30);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(310, 236);
     this.groupBox1.TabIndex = 3;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "groupBox1";
     //
     // panel1
     //
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.button7,
         this.button6,
         this.label2,
         this.toolBar3,
         this.button8,
         this.button9
     });
     this.panel1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.2109F);
     this.panel1.Location = new System.Drawing.Point(18, 54);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(218, 158);
     this.panel1.TabIndex = 2;
     //
     // button7
     //
     this.button7.Font     = new System.Drawing.Font("Microsoft Sans Serif", 7.625746F);
     this.button7.Location = new System.Drawing.Point(113, 62);
     this.button7.Name     = "button7";
     this.button7.Size     = new System.Drawing.Size(88, 38);
     this.button7.TabIndex = 3;
     this.button7.Text     = "100 times";
     this.button7.Click   += new System.EventHandler(this.button7_Click);
     //
     // button6
     //
     this.button6.Font     = new System.Drawing.Font("Microsoft Sans Serif", 7.625746F);
     this.button6.Location = new System.Drawing.Point(8, 62);
     this.button6.Name     = "button6";
     this.button6.Size     = new System.Drawing.Size(97, 38);
     this.button6.TabIndex = 2;
     this.button6.Text     = "50 times";
     this.button6.Click   += new System.EventHandler(this.button6_Click);
     //
     // label2
     //
     this.label2.Font     = new System.Drawing.Font("Palatino Linotype", 14.03077F, (System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic));
     this.label2.Location = new System.Drawing.Point(5, 31);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(165, 30);
     this.label2.TabIndex = 1;
     this.label2.Text     = "Resize the form:";
     //
     // toolBar3
     //
     this.toolBar3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.toolBar3.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton12,
         this.toolBarButton13,
         this.toolBarButton14,
         this.toolBarButton15,
         this.toolBarButton16
     });
     this.toolBar3.DropDownArrows = true;
     this.toolBar3.Name           = "toolBar3";
     this.toolBar3.ShowToolTips   = true;
     this.toolBar3.Size           = new System.Drawing.Size(214, 26);
     this.toolBar3.TabIndex       = 0;
     //
     // button8
     //
     this.button8.Font     = new System.Drawing.Font("Microsoft Sans Serif", 7.625746F);
     this.button8.Location = new System.Drawing.Point(8, 110);
     this.button8.Name     = "button8";
     this.button8.Size     = new System.Drawing.Size(97, 38);
     this.button8.TabIndex = 2;
     this.button8.Text     = "150 times";
     this.button8.Click   += new System.EventHandler(this.button8_Click);
     //
     // button9
     //
     this.button9.Font     = new System.Drawing.Font("Microsoft Sans Serif", 7.625746F, System.Drawing.FontStyle.Bold);
     this.button9.Location = new System.Drawing.Point(113, 110);
     this.button9.Name     = "button9";
     this.button9.Size     = new System.Drawing.Size(88, 38);
     this.button9.TabIndex = 3;
     this.button9.Text     = "200 times!";
     this.button9.Click   += new System.EventHandler(this.button9_Click);
     //
     // button2
     //
     this.button2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.2109F);
     this.button2.Location = new System.Drawing.Point(247, 54);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(47, 27);
     this.button2.TabIndex = 1;
     this.button2.Text     = "A";
     //
     // toolBar2
     //
     this.toolBar2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.toolBar2.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton8,
         this.toolBarButton9,
         this.toolBarButton10,
         this.toolBarButton11
     });
     this.toolBar2.DropDownArrows = true;
     this.toolBar2.Location       = new System.Drawing.Point(3, 16);
     this.toolBar2.Name           = "toolBar2";
     this.toolBar2.ShowToolTips   = true;
     this.toolBar2.Size           = new System.Drawing.Size(304, 26);
     this.toolBar2.TabIndex       = 0;
     //
     // button3
     //
     this.button3.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.2109F);
     this.button3.Location = new System.Drawing.Point(247, 87);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(47, 27);
     this.button3.TabIndex = 1;
     this.button3.Text     = "B";
     //
     // button4
     //
     this.button4.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.2109F);
     this.button4.Location = new System.Drawing.Point(247, 119);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(47, 27);
     this.button4.TabIndex = 1;
     this.button4.Text     = "C";
     //
     // button5
     //
     this.button5.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.2109F);
     this.button5.Location = new System.Drawing.Point(247, 151);
     this.button5.Name     = "button5";
     this.button5.Size     = new System.Drawing.Size(47, 27);
     this.button5.TabIndex = 1;
     this.button5.Text     = "D";
     //
     // button10
     //
     this.button10.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.2109F);
     this.button10.Location = new System.Drawing.Point(247, 183);
     this.button10.Name     = "button10";
     this.button10.Size     = new System.Drawing.Size(47, 27);
     this.button10.TabIndex = 1;
     this.button10.Text     = "E";
     //
     // radioButton1
     //
     this.radioButton1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.radioButton1.Location = new System.Drawing.Point(378, 67);
     this.radioButton1.Name     = "radioButton1";
     this.radioButton1.Size     = new System.Drawing.Size(82, 15);
     this.radioButton1.TabIndex = 4;
     this.radioButton1.Text     = "Option 1";
     //
     // label1
     //
     this.label1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
     this.label1.Location = new System.Drawing.Point(378, 39);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(73, 15);
     this.label1.TabIndex = 5;
     this.label1.Text     = "A Label:";
     //
     // radioButton2
     //
     this.radioButton2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.radioButton2.Location = new System.Drawing.Point(378, 98);
     this.radioButton2.Name     = "radioButton2";
     this.radioButton2.Size     = new System.Drawing.Size(82, 15);
     this.radioButton2.TabIndex = 4;
     this.radioButton2.Text     = "Option 2";
     //
     // radioButton3
     //
     this.radioButton3.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.radioButton3.Location = new System.Drawing.Point(378, 125);
     this.radioButton3.Name     = "radioButton3";
     this.radioButton3.Size     = new System.Drawing.Size(82, 15);
     this.radioButton3.TabIndex = 4;
     this.radioButton3.Text     = "Option 3";
     //
     // pictureBox1
     //
     this.pictureBox1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
     this.pictureBox1.Image    = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(378, 154);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(101, 111);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
     this.pictureBox1.TabIndex = 6;
     this.pictureBox1.TabStop  = false;
     //
     // Form1
     //
     this.c1SizerLight1.SetAutoResize(this, true);
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(488, 301);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.pictureBox1,
         this.label1,
         this.radioButton1,
         this.groupBox1,
         this.button1,
         this.statusBar1,
         this.toolBar1,
         this.radioButton2,
         this.radioButton3
     });
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "C1SizerLight: Docked and Nested controls";
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
     this.groupBox1.ResumeLayout(false);
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.c1SizerLight1)).EndInit();
     this.ResumeLayout(false);
 }
Esempio n. 4
0
 /// <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.button1        = new System.Windows.Forms.Button();
     this.button2        = new System.Windows.Forms.Button();
     this.button3        = new System.Windows.Forms.Button();
     this.textBox1       = new System.Windows.Forms.TextBox();
     this.toolBar1       = new System.Windows.Forms.ToolBar();
     this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
     this.toolBarButton9 = new System.Windows.Forms.ToolBarButton();
     this.panel1         = new System.Windows.Forms.Panel();
     this._sizerLight    = new C1.Win.C1Sizer.C1SizerLight(this.components);
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._sizerLight)).BeginInit();
     this.SuspendLayout();
     //
     // button1
     //
     this.button1.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.133928F, System.Drawing.FontStyle.Italic);
     this.button1.Location = new System.Drawing.Point(160, 8);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(144, 39);
     this.button1.TabIndex = 0;
     this.button1.Text     = "Undo Nothing";
     //
     // button2
     //
     this.button2.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.133928F, System.Drawing.FontStyle.Italic);
     this.button2.Location = new System.Drawing.Point(8, 58);
     this.button2.Name     = "button2";
     this.button2.Size     = new System.Drawing.Size(296, 39);
     this.button2.TabIndex = 1;
     this.button2.Text     = "Resize form 20 times.";
     this.button2.Click   += new System.EventHandler(this.button2_Click);
     //
     // button3
     //
     this.button3.Font     = new System.Drawing.Font("Microsoft Sans Serif", 9.133928F, System.Drawing.FontStyle.Italic);
     this.button3.Location = new System.Drawing.Point(8, 9);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(144, 39);
     this.button3.TabIndex = 2;
     this.button3.Text     = "Do Nothing";
     //
     // textBox1
     //
     this.textBox1.Font      = new System.Drawing.Font("Trebuchet MS", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.textBox1.Location  = new System.Drawing.Point(8, 108);
     this.textBox1.Multiline = true;
     this.textBox1.Name      = "textBox1";
     this.textBox1.Size      = new System.Drawing.Size(296, 92);
     this.textBox1.TabIndex  = 3;
     this.textBox1.Text      = "Welcome to C1SizerLight. It works in MDI Forms too.";
     //
     // toolBar1
     //
     this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
         this.toolBarButton1,
         this.toolBarButton2,
         this.toolBarButton3,
         this.toolBarButton4,
         this.toolBarButton5,
         this.toolBarButton6,
         this.toolBarButton7,
         this.toolBarButton8,
         this.toolBarButton9
     });
     this.toolBar1.DropDownArrows = true;
     this.toolBar1.Name           = "toolBar1";
     this.toolBar1.ShowToolTips   = true;
     this.toolBar1.Size           = new System.Drawing.Size(312, 25);
     this.toolBar1.TabIndex       = 4;
     //
     // panel1
     //
     this.panel1.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.button3,
         this.button2,
         this.textBox1,
         this.button1
     });
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panel1.Location = new System.Drawing.Point(0, 25);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(312, 212);
     this.panel1.TabIndex = 5;
     //
     // _sizerLight
     //
     this._sizerLight.ResizingFont += new C1.Win.C1Sizer.C1SizerLightEventHandler(this._sizerLight_ResizingFont);
     //
     // ChildForm
     //
     this._sizerLight.SetAutoResize(this, true);
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(312, 237);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.panel1,
         this.toolBar1
     });
     this.Name = "ChildForm";
     this.Text = "ChildForm";
     this.panel1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._sizerLight)).EndInit();
     this.ResumeLayout(false);
 }