Horje
wpf yes no message box exit Code Example
wpf yes no message box exit
var response = MessageBox.Show("Do you really want to exit?", "Exiting...",
                                      MessageBoxButton.YesNo, MessageBoxImage.Exclamation);
            if (response == MessageBoxResult.No)
            {
                e.Cancel = true;
            }
            else
            {
                Environment.Exit(0);
            }
c# messagebox yes no "wpf"
// This one for WPF

if (MessageBox.Show("Close Application?", "Question", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.No)
{
  //do no stuff
}
else
{
  //do yes stuff
}




Csharp

Related
constructor c# Code Example constructor c# Code Example
alphabet string[] c# Code Example alphabet string[] c# Code Example
c# last char in string Code Example c# last char in string Code Example
unity 2d player move Code Example unity 2d player move Code Example
difference two list c# Code Example difference two list c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8