将一个按钮移到窗体的边框 [英] move a button to the border of the form

查看:85
本文介绍了将一个按钮移到窗体的边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.我想在表单边框内上下移动按钮.即使更改了表单大小,它仍然停在边框上.我的详细问题是:

(1)如何将按钮移至表格的边框(上或下)?

(2)之后,即使表格大小已更改为更大或更小,如何也使按钮保持在同一位置.

我想要C#.中的代码,您有什么想法吗?谢谢.

Hello everyone. I want to move a button up and down inside the form borders.Even though the form size is changed, it still stop on the borders.My questions in details are:

(1) how to move a button to the border(up or bottom) of the form?

(2) after that, how to make the button stay in the same location even though the form size has been changed bigger or smaller.

I want the code in C#. Do you have any ideas? Any help is appreciated.Thanks.

推荐答案

您可以将按钮停靠在所需的边缘.

有关停靠的更多详细信息,请使用google.
You can Dock the button at desired edge.

For more details on docking use google.


这篇关于将一个按钮移到窗体的边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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