[英]How i can place multiple controls in a particullar cell of TableLayoutPanel
I'm using a TableLayoutPanel control and in my scenario I have to place two controls inside of one particular cell, is that possible?我正在使用 TableLayoutPanel 控件,在我的场景中,我必须在一个特定单元格内放置两个控件,这可能吗? If so, please elaborate.
如果有,请详细说明。
您应该在该单元格内使用面板或任何其他内容控件,然后您就可以在其中添加许多控件。
Put a tablelayout panel in the cell and give it two columns and one row.在单元格中放置一个表格布局面板,并为其指定两列和一行。 There's your two "cells".
这是你的两个“细胞”。
在单元格内放置一个面板,在该面板控件中,您可以放置任意数量的控件
Try something like this:尝试这样的事情:
1) Create user control and place all control you want on it and than add new control in the cell 1)创建用户控件并将您想要的所有控件放在上面,然后在单元格中添加新控件
2) Put controls in the panel then put panel in the cell 2)将控件放在面板中,然后将面板放在单元格中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.