How do you create multiple lines within a message box when combining a string with variable values?
I know... it would probably be easier to just create a seperate form and load the form.... just wondering if it was possible to not have to do such though. What if the data that is to appear on the next line is - lets say - the value of an array.
I'll explain my question. What if I want to display a list of values which the user entered....not for confirmation purposes but just to show what data had been entered...into a declared array. So..
Dim intArray(5) As Integer
Element# Element Value
0 = 11
1 = 22
2 = 33
3 = 44
4 = 55
Now ...lets say I want a message box to appear after all the input and display something like this:
55Saturday, June 17, 2006 7:54 PM
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim intArray(5) As Integer Dim mess As String = ""
intArray(0) = 11
intArray(1) = 22
intArray(2) = 33
intArray(3) = 44
intArray(4) = 55For x As Integer = 0 To intArray.GetUpperBound(0) - 1
mess = mess & intArray(x).ToString & vbCrLfNext
MsgBox("You Entered " & vbCrLf & mess) End SubSaturday, June 17, 2006 8:09 PM