自动调整 SplitContainer 面板的大小

发布于 2024-09-10 09:14:00 字数 145 浏览 2 评论 0原文

在 splitcontainer 中,如果我写 splitcontainer1.panel1.visible = false;它不会导致 panel2 填充 splitcontainer 的所有空间,但这正是我实际需要的。 你能帮我如何实现这一目标吗?

谢谢。

in a splitcontainer if I write splitcontainer1.panel1.visible = false; it does not cause the panel2 to fill all the space of the splitcontainer but this is what I actually need.
can you please help me how to achieve this?

thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

单调的奢华 2024-09-17 09:14:00

设置 Panel1Collapsed属性改为true。

Set the Panel1Collapsed property to true instead.

习ぎ惯性依靠 2024-09-17 09:14:00

对于您的问题,您可以使用 Panel1Collapsed 和 Panel1Expanded bool 属性适合根据您的要求设置 true 或 false ...

for your problem,you can use Panel1Collapsed and Panel1Expanded bool property is suitable making true or false as u need asper requirement...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文