Skip to content

MessageBoxButtons enumeration

The set of buttons a message box offers. Each value is a combination of the individual button flags, so the buttons always appear in the standard order for that combination.

public enum MessageBoxButtons

Values

name value description
Ok 1 A single OK button, for a message the user only has to acknowledge.
OkCancel 3 OK and Cancel, for confirming or abandoning an action.
YesNoCancel 14 Yes, No and Cancel, for a question the user may also decline to answer.
YesNo 12 Yes and No, for a question that must be answered one way or the other.
AbortRetryIgnore 112 Abort, Retry and Ignore, for reporting a failure the user can retry or skip.
RetryCancel 34 Retry and Cancel, for a failure the user can either retry or give up on.

See Also