按钮始终位于自动调整大小的窗体的中心 [英] Buttons always in center of an auto sized form

查看:62
本文介绍了按钮始终位于自动调整大小的窗体的中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

所以我在powershell中创建了一个表单并将其设置为自动调整大小。我还添加了一些我希望始终居中的按钮。但是,当表单变小时,按钮会保持原位并且不会移动到新表单的中心。

So I've made a form in powershell and set it to auto size. I've also added some buttons which I would like to always be centered. However, when the form gets smaller the buttons stay in place and dont move to the center of the new form.

示例:

https:/ /drive.google.com/file/d/0B0-YakSlMLxaVUk5c2NMRDdhWXM/edit?usp=sharing

https://drive.google.com/file/d/0B0-YakSlMLxaVUk5c2NMRDdhWXM/edit?usp=sharing

有没有办法根据表单的大小自动调整按钮的位置他们总是居中?

Is there a way to automize the position of buttons according to the size of the form to have them always centered?

问候

Marius

推荐答案

确实有一个选项,请分享这个消息框的代码
Indeed there is an option, please share your code for this message box


这篇关于按钮始终位于自动调整大小的窗体的中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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