2011年1月16日

摘要: 问题:当设置TableLayoutPanel属性AutoSize = true and Dock = fill, 动态向其单元格添加控件时,最后一行和列会出现空白的现象。 设置行为自适应: for (int row = 0; row rowCount; row++) { table.RowStyles.Add(new RowStyle(SizeType.AutoSize)); } 添加一行为了修复Bug table.RowStyles.Add(new RowStyle(SizeType.Absolute, 0.0F)); table.RowCount = rowCount + 1; 设置列 阅读全文
posted @ 2011-01-16 22:30 Proxima 阅读(2746) 评论(0) 推荐(1) 编辑

导航