Newline in Textbox
-
Hi folks, can somebody tell me why
TextBoxes
do not render the text (assigned through theText
property) properly when using new line escape sequence like instring s = "firstline\nsecondline";
. How can I solve this? Thanks a lot in advance! MatthiasIf eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs. (Lounge/David Wulff)
-
Hi folks, can somebody tell me why
TextBoxes
do not render the text (assigned through theText
property) properly when using new line escape sequence like instring s = "firstline\nsecondline";
. How can I solve this? Thanks a lot in advance! MatthiasIf eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs. (Lounge/David Wulff)
try using "firstline\r\nsecondline";.
-
try using "firstline\r\nsecondline";.
Correct! :cool: Thanks! Matthias
If eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs. (Lounge/David Wulff)
-
Correct! :cool: Thanks! Matthias
If eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs. (Lounge/David Wulff)
I would suggest to use
System.Environment.NewLine
to get the right newline for the system. Greets Roland