Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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

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

MessageBox yes no C#

DialogResult dialogResult = MessageBox.Show("Question", "Caption", MessageBoxButtons.YesNo);
if(dialogResult == DialogResult.Yes)
{
    //do something
}
else
{
    //do something else
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: dotnet create web api 
Csharp :: how to set a color of text in unity 2020 script 
Csharp :: change physics material unity 
Csharp :: c# textbox only numbers 
Csharp :: save binary data to file c# 
Csharp :: c# if else 
Csharp :: get list of months and year between two dates c# 
Csharp :: c# reverse a string for loop 
Csharp :: linq syntax 
Csharp :: Triangle perimeter 
Csharp :: unity fixedupdate 
Csharp :: c# list empty 
Csharp :: unity trygetcomponent 
Csharp :: calculate string length vs pixels c# 
Csharp :: can object change color when collided with particles unity 
Csharp :: json serialize object capitalization config 
Csharp :: dadar pincode 
Csharp :: unity show scene 
Csharp :: SceneManagment by BuildIndex 
Csharp :: constant interpolated string 
Csharp :: Photon Register Callbacks 
Csharp :: dictionary plus generic class c# 
Csharp :: get link element revit api 
Csharp :: drop column with code first asp.net core 
Csharp :: whining 
Csharp :: get appsetting.json config .net 
Csharp :: serenity get id from insert repository 
Csharp :: print all string in textbox in array c# 
Csharp :: c# avoid screensaver 
Csharp :: c# check if pdf is protected without password 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =