The MessageBox.Show method does not return an Integer, but a Dialog result. That is also what the error message is telling you.
Store the result of the Show method in a variable of type DialogResult, like this:
Code:
DialogResult myResult = MessageBox.Show("Are you sure?", "Quit?", MessageBoxButtons.YesNo);
if (myResult == DialogResult.Yes)
{
MessageBox.Show("Yes");
}
else
{
MessageBox.Show("No");
}
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.