For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > November 2005 > How to Create Multiline Text in Designer's Property Window?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to Create Multiline Text in Designer's Property Window?
Axel Dahmen

2005-11-16, 7:03 pm

Hi,

I'd like to add text spanning several paragraphs to a label control. How can
I add a newline/carriage return to text from within the Visual Studio
Property window?

TIA,
Axel Dahmen


Steve Alpert

2005-11-16, 7:03 pm

Axel Dahmen wrote:
> Hi,
>
> I'd like to add text spanning several paragraphs to a label control. How can
> I add a newline/carriage return to text from within the Visual Studio
> Property window?
>
> TIA,
> Axel Dahmen
>
>

have you tried entering data and include \r\n ??

/steveA

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org) and spaces

Axel Dahmen

2005-11-17, 7:58 am

Yep, VS2003 includes these literally:

..Text = @"abc\r\ndef"
-or-
..Text = "abc\\r\\ndef"

VS creates both versions. I don't know what it depends of...
When I edit the text in the source, the property window simply displays
nothing and the cursor doesn't move when I wander beyond the (invisible)
carriage return characters.

Axel

------------
"Steve Alpert" <sra@newsgroups.nospam> wrote in message
news:O04h9bt6FHA.2012@TK2MSFTNGP14.phx.gbl...
> Axel Dahmen wrote:
can[color=darkred]
> have you tried entering data and include \r\n ??
>
> /steveA
>
> --
> Steve Alpert
> my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)

and spaces
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com