Is there a builtin confirmation dialog in Windows Forms?

Viewed 109504

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?

3 Answers

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.... 
}

Output Result

Related