messagebox information c# code example
Example 1: how to do a messagebox in c#
MessageBox.Show("Content", "Title", MessageBoxIcon.Error)
Example 2: c# messagebox result
//MessageBox.Result
DialogResult result = MessageBox.Show("Do you like cats?", "Yes or No?", messageBoxButtons.YesNoCancel);
if (result == DialogResult.Yes)
;
else if (result == DialogResult.No)
;
else
;