Am using Visual C# 2010
Double click in the button close and go to the coding window
copy and paste the code below.
===============================================================================
if (MessageBox.Show("Are sure want to cancel ?", "Confirmation", MessageBoxButtons.YesNo,
MessageBoxIcon.Question) ==
System.Windows.Forms.DialogResult.Yes)
{
Close();
}
===============================================================================
Not on clicking the button after entering the codes you will see the massage above
1 comments
this has also worked, thanks
Reply