开发者

TableLayoutPanel Rows AutoHeight Around Text?

Hi I was wondering how I can get my TableLayoutPanels to resize (height) automatically depending on how much text is inside of them. for instance, if I have 5 lines of text, I'd like my row to be 5 lines high, if I have 1 line of text, I'd like my row to be 1 line high.

This is the way tables work natively in HTML, and that's basi开发者_如何学运维cally what I'm looking for.


What the problem? Make the cell in TableLayoutPanels AutoSize, and columns left and right to the cell AutoSize.

TableLayoutPanel Rows AutoHeight Around Text?

TableLayoutPanel Rows AutoHeight Around Text?

And the result is:

TableLayoutPanel Rows AutoHeight Around Text?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜