Answers for "winforms yes no dialog"

C#
3

winforms yes no dialog

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 November-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language