Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio - Add a line break in a label via the designer?

I have a label that I want to use to show some text. I want to show a few paragraphs of text.

Is there a way via the designer to make a line break in the text? (\n\r just shows \n\r)

This is WinForms (actually it is Compact Framework.)

like image 802
Vaccano Avatar asked Apr 26 '10 16:04

Vaccano


People also ask

How do you put a line break in label text?

Press Shift+Enter as you type the label text to add a line break.

How do you break a line in a label in HTML?

<br>: The Line Break element. The <br> HTML element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.


2 Answers

You can click the down arrow in the Text property to see a multi-line text field.

In the popup, you can press Enter to make a newline.

like image 34
SLaks Avatar answered Oct 04 '22 07:10

SLaks


Select the dropdown next to the label. Then you can just use the Enter key to enter line breaks.

like image 195
D'Arcy Rittich Avatar answered Oct 04 '22 07:10

D'Arcy Rittich