How to cause a line break in a textbox?

  • Thread starter Thread starter Kueishiong Tu
  • Start date Start date
K

Kueishiong Tu

I have a multiline textbox to display a char string.
How do I make the textbox break at a certain position
of the char string. I try putting '\n' in the char string,
but it doesn't work.
 
-----Original Message-----
I have a multiline textbox to display a char string.
How do I make the textbox break at a certain position
of the char string. I try putting '\n' in the char string,
but it doesn't work.
.
Try putting '\r\n' in the char string.It migth work.I
hope it can help you.Bye.
 
If you use the Environment.NewLine property, the platform handles the
details for you (it will currently use "\r\n").

Jon
 

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

Back
Top