Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# 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
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #messagebox
ADD COMMENT
Topic
Name
7+7 =