当我更改表单大小时,如何在Windows窗体中更改组合框,文本框或按钮的自动大小?我使用C#和visual studio 2008.谢谢! [英] How to change auto size of combobox, textbox or button in Windows Form when I change Size of Forms? I use C# and visual studio 2008. Thanks!

查看:94
本文介绍了当我更改表单大小时,如何在Windows窗体中更改组合框,文本框或按钮的自动大小?我使用C#和visual studio 2008.谢谢!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我更改表单大小时,如何在Windows窗体中自动更改组合框,文本框或按钮的大小?我使用C#和visual studio 2008.

How to auto change size of combobox, textbox or button in Windows Form when I change Size of Form? I use C# and visual studio 2008.

推荐答案

使用控件的 Anchor [ ^ ]属性。



/ ravi
Use the control's Anchor[^] property.

/ravi


这篇关于当我更改表单大小时,如何在Windows窗体中更改组合框,文本框或按钮的自动大小?我使用C#和visual studio 2008.谢谢!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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