#1
My friend is writing a visual basic program and needs help. There is a message box that pops up, after a button is clicked. My friend would like the text in that box to be on 2 lines, and doesn't know how to do that. Does anyone know the code to do that?
#2
Quote by kilbie
My friend is writing a visual basic program and needs help. There is a message box that pops up, after a button is clicked. My friend would like the text in that box to be on 2 lines, and doesn't know how to do that. Does anyone know the code to do that?

I found your problem.

Seriously though, just put a newline character in the string. "This is line one.\nThis is line two."

-SD
#3
It's not working. The part that should be in the next line is not part of the same " " things. It gets added on to the first sentance when a radio button is clicked.
#5
Private Sub Button1_Click(ByVal sender As System.Object, Byval e As System.EventArgs) Handles Button 1.Click
Dim msg As String
msg = "Blaa Blaa Blaa"
If chkMale.Checked Then 'Thats the name of the radio button I think
msg = msg & "Male"
ElseIf chkFemale.Checked Then
msg = msg & " Female"
If chkBrindle.checked Then 'Another radio button
msg = msg & " Brindle"
End If
MsgBox(msg)
End If

End Sub

The "Male" and "Female" should be on a line below the "Blaa Blaa Blaa". Can someone edit it so it will be like that?