Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# yes no cancel dialog with icons

DialogResult result = MessageBox.Show("Do you wanna do something?", "Warning", 
MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);
if(result == DialogResult.Yes)
{
   //code for Yes
}
else if(result == DialogResult.No)
{
  //code for No
}
else if (result == DialogResult.Cancel)
{
  //code for Cancel
}
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #cancel #dialog #icons
ADD COMMENT
Topic
Name
8+4 =