I need to force some linefeeds into text that we're displaying in a
multiline textbox in a C# app in the CF.

If I do something like

this.Textbox.text = "line 1 text\nline 2 text"

it all appears on the one line, with an unprintable character symbol
where the newline character lives.

What do I use to force a new line in a textbox?




--
g.
Gary Stark
gstark@RedbacksWeb.com
http://RedbacksWeb.com

Re: CR LF in textbox by Maarten

Maarten
Tue Oct 14 16:03:58 CDT 2003

Use the combination \r\n instead of \n alone.

--
Regards,

Maarten Struys, eMVP
PTS Software bv

"Gary Stark" <Bogus4Swen@yahoo.com> wrote in message
news:3F8C630B.77E65563@yahoo.com...
> I need to force some linefeeds into text that we're displaying in a
> multiline textbox in a C# app in the CF.
>
> If I do something like
>
> this.Textbox.text = "line 1 text\nline 2 text"
>
> it all appears on the one line, with an unprintable character symbol
> where the newline character lives.
>
> What do I use to force a new line in a textbox?
>
>
>
>
> --
> g.
> Gary Stark
> gstark@RedbacksWeb.com
> http://RedbacksWeb.com
>
>



Re: CR LF in textbox by Gary

Gary
Tue Oct 14 16:45:06 CDT 2003

Maarten,

Of course.

Many thanx.


"Maarten Struys, eMVP" wrote:

> Use the combination \r\n instead of \n alone.
>
> --
> Regards,
>
> Maarten Struys, eMVP
> PTS Software bv
>
> "Gary Stark" <Bogus4Swen@yahoo.com> wrote in message
> news:3F8C630B.77E65563@yahoo.com...
> > I need to force some linefeeds into text that we're displaying in a
> > multiline textbox in a C# app in the CF.
> >
> > If I do something like
> >
> > this.Textbox.text = "line 1 text\nline 2 text"
> >
> > it all appears on the one line, with an unprintable character symbol
> > where the newline character lives.
> >
> > What do I use to force a new line in a textbox?
> >
> >
> >
> >
> > --
> > g.
> > Gary Stark
> > gstark@RedbacksWeb.com
> > http://RedbacksWeb.com
> >
> >

--
g.
Gary Stark
gstark@RedbacksWeb.com
http://RedbacksWeb.com