Hey all,
I am trying to display a message asking if the user is sure that they want to close just before closing.
Here's what I've got...and it's only telling me that there's something wrong with the word "Message" after the MessageBox.Show part
Private Sub xExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xExitButton.Click
Dim button As DialogResult
button = MessageBox.Show(Message, _
"Are you sure you want to exit this application?", _
MessageBoxButtons.YesNo, MessageBoxDefaultButton.Button1)
If button = Windows.Forms.DialogResult.Yes Then
Me.Close()
Else
End If
End Sub
Help?...Anyone?