Answers for "c# add button to messagebox"

C#
0

c# add button to messagebox

MessageBoxButtons buttons = MessageBoxButtons.YesNo;  
DialogResult result = MessageBox.Show(message, title, buttons);  
if (result == DialogResult.Yes) {  
    this.Close();  
} else {  
    // Do something  
}
Posted by: Guest on February-14-2021

C# Answers by Framework

Browse Popular Code Answers by Language