Say I have a label control in Winforms and I want to do some thing like:
1) One
2) Two
How do I to that? If I add a "\n" to the string it does not seem to work. Is the label control inherently single line?
Press Shift+Enter as you type the label text to add a line break.
To add line breaks in the text we'll use \n character in the string we want to assign to the label.
This feature provides keyboard navigation for a form. In addition to displaying text, the Label control can also display an image using the Image property, or a combination of the ImageIndex and ImageList properties.
In the Designer select the Label.
In the Label's property sheet click the Text property item. The property will display as a combo.
Expand the combo and enter your text, including line returns.
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