且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

表格布局的行自动调整属性不起作用?

更新时间:2023-08-23 09:48:10

我意识到这是一个老问题,但是:

I realise this is an old question, however:

  1. 将每个 RadioButton 的停靠样式设置为 DockStyle.None
  2. 为每个 RadioButton 设置 AutoSize = True.

如果您设置了停靠栏样式,则自动调整大小将不起作用.确保上面的内容适用于表格中的每个子控件.

Autosize won't work if you have a dock style set. Make sure you the above is true for each child control on the table.