Check out example codes for "c# messagebox result". It will help you in understanding the concepts better.

Code Example 1

//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
    ;

Learn ReactJs, React Native from akashmittal.com