简体   繁体   中英

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.)

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

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.

下拉菜单位于的屏幕截图。

Dropdown is in the properties section.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM