Can anybody tell me why the code below doesn't work? I used this same method previously with success so I can't understand what possibly I'm doing wrong.
VB.NET:
Private Sub btnTodaysTotals_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTodaysTotals.Click
Dim Caption As String = "Reset form"
Dim Buttons As MessageBoxButtons = MessageBoxButtons.YesNoCancel
Dim Result As DialogResult
Dim Message As String = "Sold " & QuantityOfTheDay.ToString & " Pizza(s) for " & FinalTotalOfTheDay.ToString("C") & vbNewLine & _
"Do you wish to close "
If Result = System.Windows.Forms.DialogResult.No Then
Exit Sub
End If
'Gets the result of the MessageBox display.
If Result = System.Windows.Forms.DialogResult.Yes Then
End If
'MessageBox.Show("Sold " & QuantityOfTheDay.ToString & " Pizza(s) for " & FinalTotalOfTheDay.ToString("C") & vbNewLine & _
' "Do you wish to close ")
End Sub