MessageBoxButtonsYesNo
MessageBoxButtonsYesNo refers to the YesNo option of the MessageBoxButtons enumeration used in Windows Forms to configure the buttons displayed by a message box. It is part of the System.Windows.Forms namespace and is used when calling MessageBox.Show to present Yes and No choices to the user.
Usage. To display a message box with Yes and No buttons, you pass MessageBoxButtons.YesNo to MessageBox.Show,
Return values. If the user selects Yes, the result is DialogResult.Yes; if they select No, the result
Relation to other options. YesNo is one of several button configurations available in the MessageBoxButtons enumeration.
Notes. The text displayed on the buttons is provided by the operating system’s localization. The default button