MessageBoxDefaultButton

References
Message box default button selection for a MessageBox
Remarks: This enumeration specifies the default button of the message box, which is usually focussed when the message box is shown, and selectable when the user presses the Return key.

Enum values

NameValueDescription
Default0Automatically select the default button, preferring the negative form first such as Cancel, then No.
OK1The OK button is default
Yes1The Yes button is default
No2The No button is default
Cancel3The Cancel button is default