Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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 codefantasy.org #
 
PREVIOUS NEXT
Tagged: #messagebox
ADD COMMENT
Topic
Name
8+5 =