TableLayoutPanel Demo : TableLayoutPanel « GUI Windows Forms « C# / CSharp Tutorial

Home
C# / CSharp Tutorial
1.Language Basics
2.Data Type
3.Operator
4.Statement
5.String
6.struct
7.Class
8.Operator Overload
9.delegate
10.Attribute
11.Data Structure
12.Assembly
13.Date Time
14.Development
15.File Directory Stream
16.Preprocessing Directives
17.Regular Expression
18.Generic
19.Reflection
20.Thread
21.I18N Internationalization
22.LINQ
23.GUI Windows Forms
24.Windows Presentation Foundation
25.Windows Communication Foundation
26.Workflow
27.2D
28.Design Patterns
29.Windows
30.XML
31.XML LINQ
32.ADO.Net
33.Network
34.Directory Services
35.Security
36.unsafe
C# / C Sharp
C# / C Sharp by API
C# / CSharp Open Source
C# / CSharp Tutorial » GUI Windows Forms » TableLayoutPanel 
23.37.1.TableLayoutPanel Demo
using System;
using System.Drawing;
using System.Windows.Forms;

public class FloatLayoutTableLayout : Form
{

    public FloatLayoutTableLayout()
    {
        InitializeComponent();
    }

    [STAThread]
    public static void Main(string[] args)
    {
        Application.Run(new FloatLayoutTableLayout());
    }

    private void InitializeComponent()
    {
        this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
        this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
        this.radioButton1 = new System.Windows.Forms.RadioButton();
        this.radioButton2 = new System.Windows.Forms.RadioButton();
        this.radioButton3 = new System.Windows.Forms.RadioButton();
        this.radioButton4 = new System.Windows.Forms.RadioButton();
        this.radioButton5 = new System.Windows.Forms.RadioButton();
        this.label1 = new System.Windows.Forms.Label();
        this.label2 = new System.Windows.Forms.Label();
        this.radioButton6 = new System.Windows.Forms.RadioButton();
        this.radioButton7 = new System.Windows.Forms.RadioButton();
        this.radioButton8 = new System.Windows.Forms.RadioButton();
        this.radioButton9 = new System.Windows.Forms.RadioButton();
        this.radioButton10 = new System.Windows.Forms.RadioButton();
        this.radioButton11 = new System.Windows.Forms.RadioButton();
        this.radioButton12 = new System.Windows.Forms.RadioButton();
        this.radioButton13 = new System.Windows.Forms.RadioButton();
        this.radioButton14 = new System.Windows.Forms.RadioButton();
        this.radioButton15 = new System.Windows.Forms.RadioButton();
        this.radioButton16 = new System.Windows.Forms.RadioButton();
        this.radioButton17 = new System.Windows.Forms.RadioButton();
        this.radioButton18 = new System.Windows.Forms.RadioButton();
        this.flowLayoutPanel1.SuspendLayout();
        this.tableLayoutPanel1.SuspendLayout();
        this.SuspendLayout();
        // 
        // flowLayoutPanel1
        // 
        this.flowLayoutPanel1.Controls.Add(this.radioButton10);
        this.flowLayoutPanel1.Controls.Add(this.radioButton11);
        this.flowLayoutPanel1.Controls.Add(this.radioButton12);
        this.flowLayoutPanel1.Controls.Add(this.radioButton13);
        this.flowLayoutPanel1.Controls.Add(this.radioButton14);
        this.flowLayoutPanel1.Controls.Add(this.radioButton15);
        this.flowLayoutPanel1.Controls.Add(this.radioButton16);
        this.flowLayoutPanel1.Controls.Add(this.radioButton17);
        this.flowLayoutPanel1.Controls.Add(this.radioButton18);
        this.flowLayoutPanel1.Location = new System.Drawing.Point(29935);
        this.flowLayoutPanel1.Name = "flowLayoutPanel1";
        this.flowLayoutPanel1.Size = new System.Drawing.Size(298219);
        this.flowLayoutPanel1.TabIndex = 0;
        // 
        // tableLayoutPanel1
        // 
        this.tableLayoutPanel1.ColumnCount = 3;
        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
        this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 96F));
        this.tableLayoutPanel1.Controls.Add(this.radioButton1, 00);
        this.tableLayoutPanel1.Controls.Add(this.radioButton2, 10);
        this.tableLayoutPanel1.Controls.Add(this.radioButton3, 20);
        this.tableLayoutPanel1.Controls.Add(this.radioButton4, 01);
        this.tableLayoutPanel1.Controls.Add(this.radioButton5, 11);
        this.tableLayoutPanel1.Controls.Add(this.radioButton6, 21);
        this.tableLayoutPanel1.Controls.Add(this.radioButton7, 02);
        this.tableLayoutPanel1.Controls.Add(this.radioButton8, 12);
        this.tableLayoutPanel1.Controls.Add(this.radioButton9, 22);
        this.tableLayoutPanel1.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize;
        this.tableLayoutPanel1.Location = new System.Drawing.Point(1235);
        this.tableLayoutPanel1.Name = "tableLayoutPanel1";
        this.tableLayoutPanel1.RowCount = 3;
        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
        this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 88F));
        this.tableLayoutPanel1.Size = new System.Drawing.Size(281219);
        this.tableLayoutPanel1.TabIndex = 1;
        // 
        // radioButton1
        // 
        this.radioButton1.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton1.AutoSize = true;
        this.radioButton1.Location = new System.Drawing.Point(524);
        this.radioButton1.Name = "radioButton1";
        this.radioButton1.Size = new System.Drawing.Size(8117);
        this.radioButton1.TabIndex = 0;
        this.radioButton1.Text = "radioButton1";
        // 
        // radioButton2
        // 
        this.radioButton2.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton2.AutoSize = true;
        this.radioButton2.Location = new System.Drawing.Point(9724);
        this.radioButton2.Name = "radioButton2";
        this.radioButton2.Size = new System.Drawing.Size(8117);
        this.radioButton2.TabIndex = 1;
        this.radioButton2.Text = "radioButton2";
        // 
        // radioButton3
        // 
        this.radioButton3.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton3.AutoSize = true;
        this.radioButton3.Location = new System.Drawing.Point(19224);
        this.radioButton3.Name = "radioButton3";
        this.radioButton3.Size = new System.Drawing.Size(8117);
        this.radioButton3.TabIndex = 2;
        this.radioButton3.Text = "radioButton3";
        // 
        // radioButton4
        // 
        this.radioButton4.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton4.AutoSize = true;
        this.radioButton4.Location = new System.Drawing.Point(589);
        this.radioButton4.Name = "radioButton4";
        this.radioButton4.Size = new System.Drawing.Size(8117);
        this.radioButton4.TabIndex = 3;
        this.radioButton4.Text = "radioButton4";
        // 
        // radioButton5
        // 
        this.radioButton5.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton5.AutoSize = true;
        this.radioButton5.Location = new System.Drawing.Point(9789);
        this.radioButton5.Name = "radioButton5";
        this.radioButton5.Size = new System.Drawing.Size(8117);
        this.radioButton5.TabIndex = 4;
        this.radioButton5.Text = "radioButton5";
        // 
        // label1
        // 
        this.label1.AutoSize = true;
        this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif"12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.label1.Location = new System.Drawing.Point(869);
        this.label1.Name = "label1";
        this.label1.Size = new System.Drawing.Size(13920);
        this.label1.TabIndex = 2;
        this.label1.Text = "Table Layout Panel";
        // 
        // label2
        // 
        this.label2.AutoSize = true;
        this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif"12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        this.label2.Location = new System.Drawing.Point(3709);
        this.label2.Name = "label2";
        this.label2.Size = new System.Drawing.Size(13320);
        this.label2.TabIndex = 3;
        this.label2.Text = "Flow Layout Panel";
        // 
        // radioButton6
        // 
        this.radioButton6.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton6.AutoSize = true;
        this.radioButton6.Location = new System.Drawing.Point(19289);
        this.radioButton6.Name = "radioButton6";
        this.radioButton6.Size = new System.Drawing.Size(8117);
        this.radioButton6.TabIndex = 5;
        this.radioButton6.Text = "radioButton6";
        // 
        // radioButton7
        // 
        this.radioButton7.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton7.AutoSize = true;
        this.radioButton7.Location = new System.Drawing.Point(5166);
        this.radioButton7.Name = "radioButton7";
        this.radioButton7.Size = new System.Drawing.Size(8117);
        this.radioButton7.TabIndex = 6;
        this.radioButton7.Text = "radioButton7";
        // 
        // radioButton8
        // 
        this.radioButton8.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton8.AutoSize = true;
        this.radioButton8.Location = new System.Drawing.Point(97166);
        this.radioButton8.Name = "radioButton8";
        this.radioButton8.Size = new System.Drawing.Size(8117);
        this.radioButton8.TabIndex = 7;
        this.radioButton8.Text = "radioButton8";
        // 
        // radioButton9
        // 
        this.radioButton9.Anchor = System.Windows.Forms.AnchorStyles.None;
        this.radioButton9.AutoSize = true;
        this.radioButton9.Location = new System.Drawing.Point(192166);
        this.radioButton9.Name = "radioButton9";
        this.radioButton9.Size = new System.Drawing.Size(8117);
        this.radioButton9.TabIndex = 8;
        this.radioButton9.Text = "radioButton9";
        // 
        // radioButton10
        // 
        this.radioButton10.AutoSize = true;
        this.radioButton10.Location = new System.Drawing.Point(33);
        this.radioButton10.Name = "radioButton10";
        this.radioButton10.Size = new System.Drawing.Size(8717);
        this.radioButton10.TabIndex = 0;
        this.radioButton10.Text = "radioButton10";
        // 
        // radioButton11
        // 
        this.radioButton11.AutoSize = true;
        this.radioButton11.Location = new System.Drawing.Point(963);
        this.radioButton11.Name = "radioButton11";
        this.radioButton11.Size = new System.Drawing.Size(8717);
        this.radioButton11.TabIndex = 1;
        this.radioButton11.Text = "radioButton11";
        // 
        // radioButton12
        // 
        this.radioButton12.AutoSize = true;
        this.radioButton12.Location = new System.Drawing.Point(1893);
        this.radioButton12.Name = "radioButton12";
        this.radioButton12.Size = new System.Drawing.Size(8717);
        this.radioButton12.TabIndex = 2;
        this.radioButton12.Text = "radioButton12";
        // 
        // radioButton13
        // 
        this.radioButton13.AutoSize = true;
        this.radioButton13.Location = new System.Drawing.Point(326);
        this.radioButton13.Name = "radioButton13";
        this.radioButton13.Size = new System.Drawing.Size(8717);
        this.radioButton13.TabIndex = 3;
        this.radioButton13.Text = "radioButton13";
        // 
        // radioButton14
        // 
        this.radioButton14.AutoSize = true;
        this.radioButton14.Location = new System.Drawing.Point(9626);
        this.radioButton14.Name = "radioButton14";
        this.radioButton14.Size = new System.Drawing.Size(8717);
        this.radioButton14.TabIndex = 4;
        this.radioButton14.Text = "radioButton14";
        // 
        // radioButton15
        // 
        this.radioButton15.AutoSize = true;
        this.radioButton15.Location = new System.Drawing.Point(18926);
        this.radioButton15.Name = "radioButton15";
        this.radioButton15.Size = new System.Drawing.Size(8717);
        this.radioButton15.TabIndex = 5;
        this.radioButton15.Text = "radioButton15";
        // 
        // radioButton16
        // 
        this.radioButton16.AutoSize = true;
        this.radioButton16.Location = new System.Drawing.Point(349);
        this.radioButton16.Name = "radioButton16";
        this.radioButton16.Size = new System.Drawing.Size(8717);
        this.radioButton16.TabIndex = 6;
        this.radioButton16.Text = "radioButton16";
        // 
        // radioButton17
        // 
        this.radioButton17.AutoSize = true;
        this.radioButton17.Location = new System.Drawing.Point(9649);
        this.radioButton17.Name = "radioButton17";
        this.radioButton17.Size = new System.Drawing.Size(8717);
        this.radioButton17.TabIndex = 7;
        this.radioButton17.Text = "radioButton17";
        // 
        // radioButton18
        // 
        this.radioButton18.AutoSize = true;
        this.radioButton18.Location = new System.Drawing.Point(18949);
        this.radioButton18.Name = "radioButton18";
        this.radioButton18.Size = new System.Drawing.Size(8717);
        this.radioButton18.TabIndex = 8;
        this.radioButton18.Text = "radioButton18";
        // 
        // FloatLayoutTableLayout
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F13F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.ClientSize = new System.Drawing.Size(609266);
        this.Controls.Add(this.label2);
        this.Controls.Add(this.label1);
        this.Controls.Add(this.tableLayoutPanel1);
        this.Controls.Add(this.flowLayoutPanel1);
        this.flowLayoutPanel1.ResumeLayout(false);
        this.flowLayoutPanel1.PerformLayout();
        this.tableLayoutPanel1.ResumeLayout(false);
        this.tableLayoutPanel1.PerformLayout();
        this.ResumeLayout(false);
        this.PerformLayout();

    }

    private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
    private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
    private System.Windows.Forms.RadioButton radioButton10;
    private System.Windows.Forms.RadioButton radioButton11;
    private System.Windows.Forms.RadioButton radioButton12;
    private System.Windows.Forms.RadioButton radioButton13;
    private System.Windows.Forms.RadioButton radioButton14;
    private System.Windows.Forms.RadioButton radioButton15;
    private System.Windows.Forms.RadioButton radioButton16;
    private System.Windows.Forms.RadioButton radioButton17;
    private System.Windows.Forms.RadioButton radioButton18;
    private System.Windows.Forms.RadioButton radioButton1;
    private System.Windows.Forms.RadioButton radioButton2;
    private System.Windows.Forms.RadioButton radioButton3;
    private System.Windows.Forms.RadioButton radioButton4;
    private System.Windows.Forms.RadioButton radioButton5;
    private System.Windows.Forms.RadioButton radioButton6;
    private System.Windows.Forms.RadioButton radioButton7;
    private System.Windows.Forms.RadioButton radioButton8;
    private System.Windows.Forms.RadioButton radioButton9;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.Label label2;


}
23.37.TableLayoutPanel
23.37.1.TableLayoutPanel Demo
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.