At runtime I add some panels to tbl1 row and column 1 ( tbl1.Controls.Add(pnl,1,1)
). Now my question is: How can I loop into row 1 column 1 to select only 'pnl' items ?
you can do something like the following
foreach ( Control c in this.TableLayoutPanel1.Controls )
{
Console.WriteLine(this.TableLayoutPanel1.GetRow(c));
}
look at this MSDN Link as well for TableLayoutPanelClass
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.