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

后端 未结 2 1807
死守一世寂寞
死守一世寂寞 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: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";
    

提交回复
热议问题