Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-30-2005, 03:38 PM   PM User | #1
worldhopes
New to the CF scene

 
Join Date: Mar 2003
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
worldhopes is an unknown quantity at this point
Thumbs down c# New Line

hello

does anyone know the command for a new line within a message box when using c#.

thanks in advance
__________________
Bhapy
worldhopes is offline   Reply With Quote
Old 07-30-2005, 03:49 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
What is c#?

This is the Perl forum ... maybe the wrong section?
mlseim is offline   Reply With Quote
Old 08-01-2005, 06:33 AM   PM User | #3
nkrgupta
Regular Coder

 
Join Date: May 2005
Posts: 296
Thanks: 3
Thanked 4 Times in 4 Posts
nkrgupta is on a distinguished road
Hi,
Try the following:

Code:
MessageBox.Show("Line 1" + Environment.NewLine + "Line 2");
OR

Code:
MessageBox.Show("Line 1\r\nLine2", "BlahBlah", MessageBoxButtons.OK, MessageBoxIcon.Question);
OR

Code:
string CrLf = "\r\n"; 
MessageBox.Show("line 1" + CrLf + "line 2");
Cheers
nkrgupta is offline   Reply With Quote
Old 08-03-2005, 04:10 AM   PM User | #4
cf2sg
Banned

 
Join Date: Jun 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
cf2sg is an unknown quantity at this point
"\r\n" almost become the standard for most programming language to represent line break literal
cf2sg is offline   Reply With Quote
Old 08-04-2005, 12:00 PM   PM User | #5
worldhopes
New to the CF scene

 
Join Date: Mar 2003
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
worldhopes is an unknown quantity at this point
Thank You

Hello, sorry it took me so long to reply to your post.

Thank you very much for answering my question I really appreciate it.

Ciao Craig
__________________
Bhapy
worldhopes is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:14 AM.


Advertisement
Log in to turn off these ads.