调整表单大小时自动缩放表单控件的位置 [英] Auto scaling the position of form controls when a form is resized

查看:79
本文介绍了调整表单大小时自动缩放表单控件的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我已经研究了这个问题的答案,但仍然找不到合适的解决方案,这就是问题所在.我在窗体的左下角有带按钮的Windows窗体,我想要达到的效果是,当用户将窗体调整为较小的尺寸时,该按钮将不再可调整大小,我想将按钮保持在用户应该决定调整窗体的大小时,该窗体的左下角这里只是一个示例,但是您要如何感谢提前示例,但您要如何感谢您提前感谢

Hi guys i''ve researching the answers to this problem but still i found no suitable solution, here''s the problem. I have my windows form with button at the bottom left corner of the form the effect that i would like to achieve is that when the user resizes the form to a smaller size the button would no longer be resizable i would like to keep the button at bottom left corner of the form should the user decide to resize the form the button here is just an example but how do you do this thanks in advancen example but how do you do this thanks in advance

推荐答案

单击一次按钮以突出显示它.
在属性窗格中,单击锚点".
在弹出窗口中,取消选择顶部,然后选择底部.
现在,它将相对于表单的底部和左侧保持放置状态.
Click once on your button to highlight it.
In the properties pane, click on "anchor".
In the popup, deselect the top and select the bottom.
It will now stay put relative to the bottom and left sides of your form.


这篇关于调整表单大小时自动缩放表单控件的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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