随着内在的成长而成长 [英] grow form with grow inner lable

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

问题描述

嗨我有一个表格,它有一个标签。这个标签的自动调整属性设置为真。这个标签的文字可能会增长有限,这个文本的某些行不会显示在表单区域我怎么能增长这个当lable gorws automaticlly

hi i have a form that it has a lable.the autosize property of this lable set to true .the text of this lable may grow on limited and some line of this text will not display in form area how can i grow this form when lable gorws automaticlly

推荐答案

时没有自动的方法 - 锚定不适用于autosize标签。



您必须处理Label SizeChanged事件并适当更新表格宽度和高度。



就个人而言,我可能会使用ReadOnly Text相反,并启用滚动 - 一个更改高度的表单对用户来说看起来很奇怪。
There is no automatic way to do that - anchoring doesn''t work with autosize labels.

You will have to handle the Label SizeChanged event and update the Form Width and Height appropriately.

Personally, I would probably use a ReadOnly Text box instead, and enable scrolling - a form which changes height is going to look odd to the user.


这篇关于随着内在的成长而成长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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