View Full Version : messagebox question
sparky17
04-22-04, 08:04 PM
is there a way to start a new line in the dialog text?
Nerddette
04-22-04, 08:18 PM
If you treat the message box text as a string variable then you can concatenate a ControlChars.NewLine command to the end of the string.
========
Dim strResults As String
Dim strName As String
strResult = "Hello " & strName & ControlChars.NewLine
strResult &="How are you?"
MessageBox.Show(strResult, "Message Box Title")
========
The &= is a string concatenator which appends the second line of text to the end of the first line and line break.
Hope this helps.
Nerddette
sparky17
04-22-04, 08:31 PM
it did thank you very much...i cant believe i didnt think of that...lol
schiavo
05-02-04, 10:02 PM
Sure .. insert a newline character ... vbCrLf I think is the constant Chr(13) & Chr(10) ... good luck.
is there a way to start a new line in the dialog text?
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.