Try Environment.NewLine.
textBox1.Text = "s"+Environment.NewLine+"s";
RK

----- Original Message -----
From: "Tom Archer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 30, 2002 5:40 PM
Subject: Re: [DOTNET] C# and Multiline TextBox


> Have you tried "\r\n" for carriage return + line feed? I think that will
> work.
>
> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
> Patrick Burrows
> Sent: Thursday, May 30, 2002 11:39 AM
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] C# and Multiline TextBox
>
>
> Got me a textbox set to multiline. I do this:
> textBox1.Text = "s\ns";
>
> And it shows: "s[]s" (where [] is the black line thing that says "I have
> a carriage return, but I'm not going to actually act on it").
>
> Why doesn't it show:
> s
> s
>
> ?
>
>
> Patrick Burrows
> Stores are open but I Ain't got no money
> --------------------
> Now Playing: tenacious d - double team (unnamed server)
> --------------------
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to