TextBox problem

A

Alex

When I set a textbox.Text property to strings that have \n characters, they
show up as '[' or something else besides properly interpreting them as
newlines. Is there some property, or should I convert them to <br>?
 
H

Herfried K. Wagner [MVP]

* "Alex said:
When I set a textbox.Text property to strings that have \n characters, they
show up as '[' or something else besides properly interpreting them as
newlines. Is there some property, or should I convert them to <br>?

Use "\r\n" or 'Environment.NewLine' to separate the lines and set the textbox's
'MultiLine' property to 'True'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top