开发者

How is CheckBox with multi-line text done in Windows Forms?

How do I extend the text in a Windows Forms Chec开发者_运维知识库kBox to more than one line?


You need to use \r\n in order to add a new line. You might have to do this in the code behind. So your code would be like this:

myLabel.Text = "New\r\nLine\r\nExample";


First you should turn autosize property to False. Then resize the box and use \r\n for going to next line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜