User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,530 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,824 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1155 | Replies: 4
Reply
Join Date: Sep 2007
Posts: 69
Reputation: geetajlo is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
geetajlo geetajlo is offline Offline
Junior Poster in Training

How to put a break in a Message Box

  #1  
Oct 7th, 2007
Hi i want to put 4 lines which will appear in a msg box but i can't do it. i have already used "<br />" but it doesn't work. i want the phrase to be one on each line. aneed help plz
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2007
Posts: 262
Reputation: greeny_1984 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 10
greeny_1984's Avatar
greeny_1984 greeny_1984 is offline Offline
Posting Whiz in Training

Re: How to put a break in a Message Box

  #2  
Oct 8th, 2007
hi,
can u be more specific.
Reply With Quote  
Join Date: Sep 2007
Posts: 69
Reputation: geetajlo is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
geetajlo geetajlo is offline Offline
Junior Poster in Training

How to put a break in a Message Box

  #3  
Oct 8th, 2007
"I want each phrase to be one under each other like this. But in vain all appear on the same line. Need help plzzzz"

i want the message box to display:

'You have selected to buy:
3inch Screen MP4 / MP3 Player 2G. Total: Rs 5500
MP3 Player Sunglasses 1GB. Total: Rs 5000
The Orginal Apple Ipod 80GB . Total:Rs 11000
Total Price of buying product: Rs 21500
An email has been sent to you to confirm your order.
Thanks for buying our product. Do Come Again!'



Here is my code:

a = "You have selected to buy: "

If CheckBox1.Checked Then
If txtQuantity.Text = "" Then
MsgBox("Please enter your quantity for MP4/Mp3 Player", 64, "Message Error")
CheckBox1.Checked = False

Else
count = count + txtQuantity.Text
If count > 6 Then
MsgBox("You can't order more than 6", 64, "Message Error")
CheckBox1.Checked = False
txtQuantity.Text = ""
Else
totaladd = txtQuantity.Text * 5500
order = order & "3inch Screen MP4 / MP3 Player 2G. Total: " & totaladd
total = (total + totaladd)
End If

End If
End If


If CheckBox2.Checked Then
If txtQuantity2.Text = "" Then
MsgBox("Please enter your quantity for MP3 Sunglasses", 64, "Message Error")
CheckBox2.Checked = False

Else
count = count + txtQuantity2.Text
If count > 6 Then
MsgBox("You can't order more than 6")
CheckBox2.Checked = False
txtQuantity2.Text = ""
Else
totaladd = txtQuantity2.Text * 5000
order = order & " MP3 Player Sunglasses 1GB. Total:" & totaladd
total = (total + totaladd)
End If

End If
End If


If CheckBox3.Checked Then
If txtQuantity3.Text = "" Then
MsgBox("Please enter your quantity for Apple Ipod")
CheckBox3.Checked = False

Else
count = count + txtQuantity3.Text
If count > 6 Then
MsgBox("You can't order more than 6")
CheckBox3.Checked = False
txtQuantity3.Text = ""
Else
totaladd = txtQuantity3.Text * 11000
order = order & " The Orginal Apple Ipod 80GB . Total: " & totaladd
total = (total + totaladd)
End If

End If

End If
MsgBox(a & order & " TotalPrice of buying product: " & total & ". An email has been sent to you to confirm your order. Thanks for buying our product. Do Come Again!", 64, "New Technologie")

End Sub
Reply With Quote  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,166
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 59
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: How to put a break in a Message Box

  #4  
Oct 8th, 2007
MsgBox("This is line one.\r\nThis is line two")
or:
MsgBox("This is line one." & Environment.NewLine & "This is line two")
See:
http://msdn2.microsoft.com/en-us/lib...t.newline.aspx
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote  
Join Date: Sep 2007
Posts: 69
Reputation: geetajlo is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
geetajlo geetajlo is offline Offline
Junior Poster in Training

Re: How to put a break in a Message Box

  #5  
Oct 8th, 2007
Thanks dr
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC