调整表格 [英] Resizing Form

查看:92
本文介绍了调整表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的
我有一个Windows窗体,它被设置为固定的宽度和高度...

现在我要调整表格的大小以适合全屏显示,这很好,但是

如何使用相同的缩放器来调整窗体中每个控件的大小....

在此先感谢

Dear
I have a windows form, that was set to a fixed width and height...

Now i am aske to resize the form to fit full screen, that''s fine but

How to resize also every control in the form with the same scaler ....

Thanks in advance

推荐答案

我似乎已经记得有人问过这个问题,您还真幸运,我还没看到您的问题的历史.

查看控件的"anchor"和"dock"属性.

正确设置这些值时,控件将在窗体调整大小时调整大小或移动(取决于这些属性的设置).

要掌握这些属性,只需与它们一起玩一会儿,看看会发生什么.
您可以在设计器中执行此操作.设置属性,然后调整表单大小,控件将自行移动/调整大小.
I seem to remember this being asked already, your lucky I can''t see the history of your questions yet.

Look into the ''anchor'' and ''dock'' properties of your controls.

When you set these correctly, the controls will resize or move (depending on the settings of these property''s) when the form resizes.

To get the hang of these properties just play around with them a bit and see what happens.
You can do that in the designer. Set the properties then resize your form and the controls will move/resize them self.


这篇关于调整表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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