Answers for "messagebox yes-no"

C#
10

messagebox yes-no

DialogResult dialogResult = MessageBox.Show("Sure", "Some Title", MessageBoxButtons.YesNo);
if(dialogResult == DialogResult.Yes)
{
    //do something
}
else if (dialogResult == DialogResult.No)
{
    //do something else
}
Posted by: Guest on July-05-2020

C# Answers by Framework

Browse Popular Code Answers by Language