且构网

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

隐藏和显示 TableLayoutPanel 的单元格

更新时间:2023-12-06 10:33:34

那么你为什么要使用 TableLayoutPanel?

So why did you use a TableLayoutPanel?

只需在你的表单上放三个Panel,将每一行的内容填入每个人,并将所有三个面板的Dock属性设置为Fill代码>.将两个面板设置为 Visible = false,一个设置为 true.

Just put three Panels on your form, fill in everyone the content of each row and set the Dock property of all three panels to Fill. Set two panels Visible = false and one to true.

如果您想看到另一个面板,只需使其可见并隐藏其他两个(根据您的单选按钮设置).

If you like to see another panel, just make it visible and hide the other two (based on your radio button settings).