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

后端 未结 2 1812
死守一世寂寞
死守一世寂寞 2021-02-18 15:15

How do I extend the text in a Windows Forms CheckBox to more than one line?

相关标签:
2条回答
  • 2021-02-18 15:43

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

    0 讨论(0)
  • 2021-02-18 15:56

    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";
    
    0 讨论(0)
提交回复
热议问题