开发者

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 t开发者_C百科he 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.


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

Dropdown is in the properties section.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜