1private void button1_Click(object sender, EventArgs e)
2 {
3 int i=(int)MessageBox.Show("Do you want to close this Add Form", "Midatlantic System", System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Warning);
4 MessageBox.Show(i.ToString());
5 return;
6 }