I'd like to create a simple confirm dialog saying "Please check the information and if you're sure it's correct, click OK."
Is there something built in like this?
I'd like to create a simple confirm dialog saying "Please check the information and if you're sure it's correct, click OK."
Is there something built in like this?
In .Net Core you can do it like this:
DialogResult dialogResult= MessageBox.Show("Are you sure to delete?", "Confirm", MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes)
{
//if code here....
}
else
{
//else code here....
}