MessageBox.Show

jabernine

New member
Joined
May 30, 2007
Messages
1
Programming Experience
Beginner
I am working on a project and am trying to get my results from my calculations to show in the Message Box with Labels. Below is my code so far:

'What to Display
If Me.chkGrandTotal.Checked = True Then
MessageBox.Show("Grand Total:" lblGrandTotal, "Amount of Order")
Else
MessageBox.Show(decTotalA.ToString & ControlChars.CrLf & _
decTotalB.ToString & ControlChars.CrLf & _
decTotalC.ToString & ControlChars.CrLf & _
lblGrandTotal.ToString, "Amount of Order")
End If


HELP!
 
Something like this should work...

'What to Display
If Me.chkGrandTotal.Checked = True Then
MessageBox.Show("Grand Total:" & lblGrandTotal.text, "Amount of Order")
Else
MessageBox.Show(decTotalA.ToString & ControlChars.CrLf & _
decTotalB.ToString & ControlChars.CrLf & _
decTotalC.ToString & ControlChars.CrLf & _
lblGrandTotal.Text, "Amount of Order")
End If
 
Back
Top