Line-feed, return character

P

Paul

Hello,

Could someone remind me of how to insert a line-feed/return character, please?

I have used it before, but I can't recall what it is. What I'm looking for IS NOT an escape character (i.e. /n, /r).

The expression that I'm looking for uses the dot operator (.) (i.e. classname.property).

Perhaps this will help to explain what I'm looking for: I want to fill in the "blank" in the line below.

MessageBox.Show("First line." + ______ + "Second line.");

Thank you in advance!

-Rodney
 
J

Joerg Jooss

Paul said:
Hello,

Could someone remind me of how to insert a line-feed/return
character, please?

I have used it before, but I can't recall what it is. What I'm
looking for IS NOT an escape character (i.e. /n, /r).

The expression that I'm looking for uses the dot operator (.) (i.e.
classname.property).

Perhaps this will help to explain what I'm looking for: I want to
fill in the "blank" in the line below.

MessageBox.Show("First line." + ______ + "Second line.");

Thank you in advance!

That's Environment.NewLine.

Cheers,
 
P

Paul E Collins

Paul said:
I want to fill in the "blank" in the line below.
MessageBox.Show("First line." + ______ +
"Second line.");

You're thinking of Environment.NewLine, which is "\r\n" under Windows.

P.
 

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