Answers for "information messagebox c#"

C#
33

c# MessageBox

MessageBox.Show("text", "title", MessageBoxButtons.OK, MessageBoxIcon.Warning);
Posted by: Guest on March-02-2020
0

c# messagebox result

DialogResult result = MessageBox.Show("Do you want to save changes?", "Confirmation", MessageBoxButtons.YesNoCancel);
if(result == DialogResult.Yes)
{ 
    //...
}
else if (result == DialogResult.No)
{ 
    //...
}
else
{
    //...
}
Posted by: Guest on April-03-2022

C# Answers by Framework

Browse Popular Code Answers by Language