Answers for "action upton execution of ok button in msg box win forms"

-1

action upton execution of ok button in msg box win forms

if (MessageBox.Show("Are you sure?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
    // user clicked yes
}
else
{
    // user clicked no
}
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language