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 :: minimize window form c# 
Csharp :: ms crm set state request dynamics 365 set state request 
Csharp :: unity mouse lock 
Csharp :: unity find objects with tag 
Csharp :: c# hello world program 
Csharp :: how to change scenes on collision unity 
Csharp :: unity how to change rotation 
Csharp :: aspx textarea 
Csharp :: ngrok for asp.net core 
Csharp :: how to lerp in c# 
Csharp :: check if string is email c# 
Csharp :: c# bytes to string 
Csharp :: how to remove a component from an object in unity 
Csharp :: OnInitialized blazor 
Csharp :: c# player movement 
Csharp :: how to get delta time in monogame 
Csharp :: c# char to int 
Csharp :: c# foreach enum 
Csharp :: how to convert string to bool c# 
Csharp :: convert timestamp to datetime c# code 
Csharp :: path desktop c# 
Csharp :: unity save list to json 
Csharp :: bin/bash bad interpreter 
Csharp :: c# console create window 
Csharp :: stop process c# 
Csharp :: unity smooth camera 2d 
Csharp :: unity character controller ignore collision 
Csharp :: c# stop 
Csharp :: c# copy list without reference 
Csharp :: stock span problem c# 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =