DialogResult result = MessageBox.Show("Are you sure you want to overwrite the District details?", "ErrorMessage", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1,MessageBoxOptions.DefaultDesktopOnly); if (result == DialogResult.Yes) {// Code } else { //code }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)