动态添加UserControl到TableLayoutPanel的高度

时间:2016-01-21 18:47:45

标签: c# winforms user-controls resize tablelayout

我正在撰写一个$allowed_delete_keys = array( 'table1' => array('columnA', 'columnB'), 'table2' => array('columnX', 'columnY') ); if (!isset($allowed_delete_keys[$_POST['table']])) { echo "You can't delete from this table."; exit; } else { if (!in_array($_POST['field'], $allowed_delete_keys[$_POST['table']])) { echo "You can't delete records based on this key"; exit; } else { deleteFromTable($database, $table, $field, $value); } } 应用,类似于winForm读者。

我有一个RSS表单,而Panel我有panel我正在动态地将TableLayoutPanel添加到此UserControls中(因为我不喜欢我知道会有多少TableLayoutPanel

我的UserControls代表1 UserControl条 - 它由1 RSS组成,包含4行(每行中有1 TableLayoutPanel) - label

一切似乎都不错但是当我尝试Title, Date, Description and etchedLine.resize时,我的Form没有调整大小,所以当描述太长时,文章的一部分就会丢失。

我尝试将UserControls属性设置为True,AutoSize设置我能找到的所有内容,但没有成功。看起来我动态添加的Dock = Fill标准尺寸,UserControl与主resize不一致。

这里没关系: enter image description here

这里不行(缺少文字和行): enter image description here

我真的很感激你能给我的任何帮助。

0 个答案:

没有答案
相关问题