且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在.NET Windows窗体中向TableLayoutPanel添加动态控件

更新时间:2022-06-16 19:40:25

您只需要使用

You just need to use the Controls.Add method and specify column and row for the control:

rowLayout.Controls.Add(tb1, 0, 0);
rowLayout.Controls.Add(tb2, 0, 1);