Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

MessageBox yes no C#

DialogResult dialogResult = MessageBox.Show("Question", "Caption", MessageBoxButtons.YesNo);
if(dialogResult == DialogResult.Yes)
{
    //do something
}
else
{
    //do something else
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #MessageBox
ADD COMMENT
Topic
Name
3+8 =