在 TableLayoutPanel 中,如果 Dock = Fill 和 AutoSize = true 则最后一列/行占据所有剩余空间 [英] In TableLayoutPanel if Dock = Fill and AutoSize = true then last column/row occupy all remaining space

查看:15
本文介绍了在 TableLayoutPanel 中,如果 Dock = Fill 和 AutoSize = true 则最后一列/行占据所有剩余空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 TableLayoutPanel 中,如果我们设置 AutoSize = true 和 Dock = fill那么最后一列/行将占据所有剩余空间.如何将其设置为所需的高度(行)和宽度(列)?

In TableLayoutPanel if we set AutoSize = true and Dock = fill then last column/row will occupy all remaining space. How to set it to required height (row) and width (column)?

推荐答案

您应该将 TableLayoutPanel 添加为具有两行两列的 tbl1.然后设置 dock = fill autoscroll = true 并将第一行的宽度设置为 autosize 和第二个 absolute 0.00 F.

You should add TableLayoutPanel as tbl1 with two rows and two columns. Then set dock = fill autoscroll = true and set width for 1st row to autosize and for the second absolute 0.00 F.

对第 1 列和第 2 列执行相同操作.现在在第一行第一列中添加实际的 TableLayoutPanel.

Do the same for column 1 and 2. Now add actual TableLayoutPanel in 1st rows 1st column.

这篇关于在 TableLayoutPanel 中,如果 Dock = Fill 和 AutoSize = true 则最后一列/行占据所有剩余空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆