当寡妇形成重新大小时自动设置控制? [英] auto set control when widows form re-size ?

查看:71
本文介绍了当寡妇形成重新大小时自动设置控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i希望在这个4-5控件中开发一个小的。



i这有一个2按钮,1个文本框和1个图像控件。



运行时我想要调整大小来自那个时间控件的运行时没有正确显示。



所以,如何设置重新调整大小的所有控制权。





谢谢你,..

Hi,

i want to develop a small from in this 4-5 controls in this.

i this have a 2 button , 1 textbox and 1 image control.

that runtime i want to interest for resize a from that time control are not show properly.

so, how to set all control on re-size a from .


thank you,..

推荐答案

当你调整所有控件的大小时,Winforms不能很好地完成它 - 它可以放大或缩小按钮或文本框例如,但它不会改变它使用的文本大小,这可能使它看起来有点傻。



然而,你可能想做的就是修复一些相对于边缘或形式的控件,并调整图像大小:

Winforms doesn't do that well when you resize all it's controls - it can enlarge or shrink a button or a text box for example, but it won't change the text size it uses, which can make it look a bit silly.

However, what you probably want to do is fix some controls relative to the edges or the form, and resize the image:
iiiiiiiii
iiiiiiiii
iiiiiiiii
iiiiiiiii
ttttt b b

成为:

becomes:

iiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiii
tttttttttttttt b b



在哪种情况下,查看每个控件的Anchor属性:

图像应该是顶部,左侧,底部和右侧

TextBox应该是左,右和右

两个按钮应该只有底部和右边。



试一试:你会明白我的意思。


In which case, look at the Anchor property of each control:
Image should be Top, Left, Bottom, and Right
TextBox should be Left, Bottom and Right
the two buttons should be Bottom and Right only.

Try it: you'll see what I mean.


这篇关于当寡妇形成重新大小时自动设置控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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