How to change new line in textBox
-
Hi, guys. I set the control textBox as Multiline true. And I want change the text line with such way"Contents.\n in the box". But "\n" didn't change a new line instead of displaying an error character. What 's the reson? And how can I can realize changing a new in my code? Thanks a lot vigorous
-
Hi, guys. I set the control textBox as Multiline true. And I want change the text line with such way"Contents.\n in the box". But "\n" didn't change a new line instead of displaying an error character. What 's the reson? And how can I can realize changing a new in my code? Thanks a lot vigorous
wk_vigorous wrote: And I want change the text line with such way"Contents.\n in the box". But "\n" didn't change a new line instead of displaying an error character. Try \n\r wk_vigorous wrote: And how can I can realize changing a new in my code? That makes no sense. If you want to find out when the text changes, you can handle the TextChanged event. Aaron Eldreth TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy
-
wk_vigorous wrote: And I want change the text line with such way"Contents.\n in the box". But "\n" didn't change a new line instead of displaying an error character. Try \n\r wk_vigorous wrote: And how can I can realize changing a new in my code? That makes no sense. If you want to find out when the text changes, you can handle the TextChanged event. Aaron Eldreth TheCollective4.com My Articles While much is too strange to be believed, Nothing is too strange to have happened. - T. Hardy