Home
Manage Your Code
Snippet: TableLayoutPanel (C#)
Title: TableLayoutPanel Language: C#
Description: TableLayoutPanel Sample Views: 47
Author: PRADEEP KUMAR Date Added: 7/14/2008
Copy Code  
1private void IntializeTableLayoutPnl()
2        {
3            TableLayoutPanel tableLayoutPanel2 = new TableLayoutPanel();
4            tableLayoutPanel2.Dock = DockStyle.Fill;
5            tableLayoutPanel2.CellBorderStyle = TableLayoutPanelCellBorderStyle.InsetDouble;
6            this.Controls.Add(tableLayoutPanel2);
7            for (int row = 0; row < 5; row++)
8            {
9                Label text = new Label();
10                text.Text = "text";
11                tableLayoutPanel2.Controls.Add(text);
12            }
13        }
Usage
C#
Notes
TableLayoutPanel