How do I extend the text in a Windows Forms CheckBox to more than one line?
A multiline text box control is a large text box that can display several lines of text or accept this text from user input. Text boxes are often linked to select value lookups and detailed menus.
There's an AutoSize option in the Properties windows; if you turn that off by changing it to False , you will be able to modify the size of your CheckBox .
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";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With