vb.net 如何将长行包装到标签控件中?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15809676/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 16:47:55  来源:igfitidea点击:

How to wrap long lines into label control?

vb.netlabel

提问by daksh21ubuntu

I have content of 50-60 words in label and it goes beyond my groupbox where I put it, so I need to wrap it so it can be accommodate within groupbox.

我在标签中有 50-60 个单词的内容,它超出了我放置它的 groupbox,所以我需要将它包装起来,以便它可以容纳在 groupbox 中。

回答by Matt Wilko

Just Set the AutoSizeproperty of the label to False, then reposition then label to the size you need

只需将AutoSize标签的属性设置为False,然后重新定位,然后将标签设置为您需要的大小