DialogResult dialogResult = MessageBox.Show("Type Your Message", "Message Box Title", MessageBoxButtons.YesNo); if(dialogResult == DialogResult.Yes) { //Yes Result } else if (dialogResult == DialogResult.No) { //No Result }
Labels:
CSharp
How to create a Messagebox with “Yes”, “No” choices and a DialogResult in C#?
Posted by
csharp
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment