Featured Worklog

Price Search



PC Apex Sponsor


PC Apex Sponsors



PC Apex RSS Feeds

RSS Feed for PC Apex Reviews & ArticlesRSS Feed for PC Apex PC Modding WorklogsRSS Feed for the PC Apex Daily DisturbanceRSS Feed for the latest PC Apex Site NewsRSS Feed for PC Apex Affiliate and Web NewsRSS Feed for PC Apex Deals and Steals

Go Back   Apex Community Forums // Other Forums // Designers Corner // Coding / Scripting / Programming

Coding / Scripting / Programming Discussions on all manner of coding and scripting.

Reply
 
LinkBack Thread Tools Display Modes
Old 15-April-06, 12:09 AM   #1 (permalink)
Sir Knight of Spamalot
Nerdz's Avatar
Default VB.net (message boxes)

Ive created a message box, but the message I have is too long. I want it to go to the next line, but I cant get it to do so.

Ive used controlChar.newline, and even & _

Heres my message

PHP Code:
Private Sub Help_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Help.Click
        MessageBox
.Show(" This Calculator Created By Overclocked. You can reach me at Overclocked2300(at)gmail.com Instructions:Enter Heatsink Measurements in inches. Press Calculate. Thats all there is too it!""Heatsink Calculator By Overclocked"MessageBoxButtons.OKMessageBoxIcon.Asterisk)
    
End Sub 
get swiggly lines If I try to press enter and skip to another line (meaning, the code is wrong)

Any Ideas?
Nerdz is offline     Reply With Quote
Old 17-April-06, 10:08 AM   #2 (permalink)
Apex Master Tech Apprentice
mrcracker's Avatar
Default

Try:

MessageBox.Show("Line1" & vbCrLF & "Line2")
mrcracker is offline     Reply With Quote
Old 17-April-06, 12:35 PM   #3 (permalink)
Sir Knight of Spamalot
Nerdz's Avatar
Default

So Im guessing in place of Line one I have to:

Dim Line1 as String = "My message here"
Dim Line2 as String = "My 2nd Message here"

Right?
Nerdz is offline     Reply With Quote
Old 17-April-06, 12:58 PM   #4 (permalink)
Apex Master Tech Apprentice
mrcracker's Avatar
Default

You don't even have to go that far...you can do it just like the above example.
mrcracker is offline     Reply With Quote
Old 17-April-06, 01:17 PM   #5 (permalink)
Master VB Pr'hoe'grammer
Monsignor Funkibut's Avatar
Wink Yep and

You're on the right track Nerdz. Also spell check. Next to last word is TO.
-MF
Monsignor Funkibut is offline     Reply With Quote
Old 17-April-06, 01:50 PM   #6 (permalink)
Apex Master Tech
Morion's Avatar
Default

Use VBCRLF

Ex: "Part of the string " & vbcrlf & "the rest of it on a new line"
Morion is offline     Reply With Quote
Old 20-May-06, 09:27 PM   #7 (permalink)
Sir Knight of Spamalot
Nerdz's Avatar
Default

Awws weet it works! Thanks +rep!
Nerdz is offline     Reply With Quote
Old 21-May-06, 01:55 AM   #8 (permalink)
Apex Master Tech
Morion's Avatar
Default

Quote:
Originally Posted by Nerdz
Awws weet it works! Thanks +rep!

No problem
Morion is offline     Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Down with the Beige boxes Spatha Intro & Greetz 1 16-April-07 06:22 PM
Linux boxes Fred_G Team PimpRig (F@H and more) 0 05-February-06 01:17 AM
$150 rebates for TiVO boxes Bionic Deals and Steals 0 16-September-05 10:15 AM
Does anyone know how many rep. pts = 2 green boxes? Arkangyl Anything Goes 15 12-July-04 05:34 PM
Dialogue Boxes BigAkita Anything Goes 5 07-March-04 07:20 PM


All times are GMT -5. The time now is 06:54 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright PCApex.com, GameApex.com, ForumApex.com 2001 - 2008
Advertisements

Page generated in 0.16563 seconds with 9 queries