Search
 
SCRIPT & CODE EXAMPLE
 

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
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# on alt + f4 
Csharp :: c# different getter setter types 
Csharp :: c# Prefix Sum of Matrix (Or 2D Array) 
Csharp :: erewt 
Csharp :: camera follow player unity 
Csharp :: how to make enemy killed by bullet unity2D 
Csharp :: unity transparent sprite 
Csharp :: c# delay 1 second 
Csharp :: c # 
Csharp :: actual vector3 object unity 
Csharp :: c# multipthreading 
Csharp :: c# windows forms how to get controls in gropu box 
Csharp :: mongodb truncation exception c# 
Csharp :: c# string interpolation float format 
Csharp :: how to fill dictionary in c# 
Csharp :: select every second row in html table 
Csharp :: List foreach 
Csharp :: convert enum to keyvalue 
Csharp :: use string[] args c# 
Csharp :: get path c# application 
Csharp :: datagridview mouse click event c# 
Csharp :: How to fill text with 2 different color/texture 
Csharp :: wpf clock conrt 
Csharp :: c# if loop 
Csharp :: WPF TextBox input to All Caps 
Csharp :: Focus on last entry in listbox 
Csharp :: single or default in c# 
Csharp :: invalid length for a base-64 char array or string. frombase64string c#Add Answer 
Csharp :: c# find the smallest string in an array of strings 
Csharp :: unity move in x seconds to pos 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =