How do you put a carriage return and/or a linefeed in a
string. I am actually putting several line of text in a
Label but I need some blank lines in the middle of the
label.
Thanks for any help.

Re: CARRIAGE RETURN - LINE FEED by Paul

Paul
Thu Dec 18 16:28:05 CST 2003

In what language?

Paul T.

"Rob H." <anonymous@discussions.microsoft.com> wrote in message
news:024f01c3c5b4$71c7a3c0$a601280a@phx.gbl...
> How do you put a carriage return and/or a linefeed in a
> string. I am actually putting several line of text in a
> Label but I need some blank lines in the middle of the
> label.
> Thanks for any help.



CARRIAGE RETURN - LINE FEED by anonymous

anonymous
Thu Dec 18 16:33:34 CST 2003

If you are using VB, use vbLF.

Dim mystring as String = "this is my string" + vbLF


>-----Original Message-----
>How do you put a carriage return and/or a linefeed in a
>string. I am actually putting several line of text in a
>Label but I need some blank lines in the middle of the
>label.
>Thanks for any help.
>.
>

Re: CARRIAGE RETURN - LINE FEED by Alex

Alex
Thu Dec 18 16:35:04 CST 2003

VB.NET
VbCrLf

C#
\r\n



"Rob H." <anonymous@discussions.microsoft.com> wrote in message
news:024f01c3c5b4$71c7a3c0$a601280a@phx.gbl...
> How do you put a carriage return and/or a linefeed in a
> string. I am actually putting several line of text in a
> Label but I need some blank lines in the middle of the
> label.
> Thanks for any help.



Re: CARRIAGE RETURN - LINE FEED by Dick

Dick
Thu Dec 18 16:44:11 CST 2003

Hi,

In VB it would be something like:

MyString & vbCrLf

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.



CARRIAGE RETURN - LINE FEED by Rob

Rob
Thu Dec 18 16:46:28 CST 2003

I am using C#. I have tried using \r\n ("blah \r\n blah")
but it did not insert a blank line when I ran the program.
Thanks.
>-----Original Message-----
>How do you put a carriage return and/or a linefeed in a
>string. I am actually putting several line of text in a
>Label but I need some blank lines in the middle of the
>label.
>Thanks for any help.
>.
>

Re: CARRIAGE RETURN - LINE FEED by Chris

Chris
Thu Dec 18 16:54:44 CST 2003

Is Multiline set to true?

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


"Rob H" <anonymous@discussions.microsoft.com> wrote in message
news:02eb01c3c5b8$c646aa00$a501280a@phx.gbl...
> I am using C#. I have tried using \r\n ("blah \r\n blah")
> but it did not insert a blank line when I ran the program.
> Thanks.
> >-----Original Message-----
> >How do you put a carriage return and/or a linefeed in a
> >string. I am actually putting several line of text in a
> >Label but I need some blank lines in the middle of the
> >label.
> >Thanks for any help.
> >.
> >



Re: CARRIAGE RETURN - LINE FEED by Brian

Brian
Thu Dec 18 16:55:13 CST 2003

Look at using Environment.NewLine

Example: string strText = "This is a " + Environment.NewLine +
Environment.NewLine + "test";

"Rob H." <anonymous@discussions.microsoft.com> wrote in message
news:024f01c3c5b4$71c7a3c0$a601280a@phx.gbl...
> How do you put a carriage return and/or a linefeed in a
> string. I am actually putting several line of text in a
> Label but I need some blank lines in the middle of the
> label.
> Thanks for any help.



Re: CARRIAGE RETURN - LINE FEED by Alex

Alex
Thu Dec 18 18:35:38 CST 2003

Not in the Compact rameWork

"Brian Piesik" <bpiesik@hotmail.com> wrote in message
news:eNm0CobxDHA.2508@TK2MSFTNGP12.phx.gbl...
> Look at using Environment.NewLine
>
> Example: string strText = "This is a " + Environment.NewLine +
> Environment.NewLine + "test";
>
> "Rob H." <anonymous@discussions.microsoft.com> wrote in message
> news:024f01c3c5b4$71c7a3c0$a601280a@phx.gbl...
> > How do you put a carriage return and/or a linefeed in a
> > string. I am actually putting several line of text in a
> > Label but I need some blank lines in the middle of the
> > label.
> > Thanks for any help.
>
>



CARRIAGE RETURN - LINE FEED - answer by Rob

Rob
Fri Dec 19 08:52:17 CST 2003

Ok, I have slept and the magic fairy has made my code work
now. For some reason, today all is working well. Don't I
wish that would happen every morning. Anyway, "blah \n\r
blah" works like a charm (using C# .NETCF). Thanks to all
that helped me out.
>-----Original Message-----
>How do you put a carriage return and/or a linefeed in a
>string. I am actually putting several line of text in a
>Label but I need some blank lines in the middle of the
>label.
>Thanks for any help.
>.
>

Re: CARRIAGE RETURN - LINE FEED - answer by Alex

Alex
Fri Dec 19 11:51:41 CST 2003

It's supposed to be \r\n
To help remember it imagine how the typewriter operates (right, like people
actually use them <g>)
When you are going to the next line it's Carriage Return (\r) followed by
New Line (\n), not the other way around

"Rob H" <anonymous@discussions.microsoft.com> wrote in message
news:09af01c3c63f$b2abaae0$a501280a@phx.gbl...
> Ok, I have slept and the magic fairy has made my code work
> now. For some reason, today all is working well. Don't I
> wish that would happen every morning. Anyway, "blah \n\r
> blah" works like a charm (using C# .NETCF). Thanks to all
> that helped me out.
> >-----Original Message-----
> >How do you put a carriage return and/or a linefeed in a
> >string. I am actually putting several line of text in a
> >Label but I need some blank lines in the middle of the
> >label.
> >Thanks for any help.
> >.
> >