How do I extend the text in a Windows Forms CheckBox to more than one line?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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";
回答2:
First you should turn autosize property to False. Then resize the box and use \r\n for going to next line.