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?
Mattias Sj?gren - 06 Mar 2005 10:49 GMT
>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!
\r\n is the combination to use in Windows (or
System.Environment.NewLine). You must of course also set the textbox'
MutliLine property to true.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
gaidar - 06 Mar 2005 23:07 GMT
Are you sure that you using C# syntax correctly?
Try to do the following:
textBox1.Multiline = true;
textBox1.Text = "This is a line\r\nAnother line";
> Hi,
>
[quoted text clipped - 11 lines]
>
> Kerem G?mr?kc?