"\n" does not work inside a textbox control class

  • Thread starter Kerem Gümrükcü
  • Start date
K

Kerem Gümrükcü

Hi,

i am about to burst!!! how can i make my string break inside a textbox?
i mean with a control charater like "\n", but it does not work!

i have a string and i must set the wrap manuall, not controled by the
wordwrap property of the textbox. as i alread said: "\n" does not work!

Language s C#

how can i solve this.


Best Regards


Kerem Gümrükcü
 
J

Jon Skeet [C# MVP]

Kerem Gümrükcü said:
i am about to burst!!! how can i make my string break inside a textbox?
i mean with a control charater like "\n", but it does not work!

i have a string and i must set the wrap manuall, not controled by the
wordwrap property of the textbox. as i alread said: "\n" does not work!

Use "\r\n" or Environment.NewLine instead.
 
A

Anubhav Mishra

Use Environment.NewLine if framework, and the textbox should be multiline
 

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