重新放置表单中的分组框 [英] Reposition groupbox in form

查看:64
本文介绍了重新放置表单中的分组框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个分组框,前一个是可折叠的,我想在上分组框折叠或展开时调整下分组框的布局.
谢谢

解决方案


//groupBox1是groupBox的名称
//定义x和y位置.
groupBox1.Location = new Point(x,y);


使用停靠属性的顶部应该停靠在顶部,而另一个停靠处要填充.


I have two group boxes top one is collapsible, i want to adjust layout of lower group box when upper group box collapse or expand.
Thanks

解决方案

Hi,
//groupBox1 is the name of groupBox
//define x and y position.
groupBox1.Location = new Point(x,y);


Using dock property top one should be dock to top while other one dock to fill.


这篇关于重新放置表单中的分组框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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