Answers for "windows forms messagebox show"

C#
1

show messagebox winform

using System.Windows.Forms;
...
MessageBox.Show("Hello World!");
Posted by: Guest on July-15-2021
2

winforms messagebox with button

string message = "Do you want to close this window?";  
string title = "Close Window";  
MessageBoxButtons buttons = MessageBoxButtons.YesNo;  
DialogResult result = MessageBox.Show(message, title, buttons);  
if (result == DialogResult.Yes) {  
    this.Close();  
} else {  
    // Do something  
}  
Posted by: Guest on April-03-2020

C# Answers by Framework

Browse Popular Code Answers by Language