System.Windows.Forms.MessageBoxButtons Enumeration

Specifies constants defining which buttons to display on a System.Windows.Forms.MessageBox.

Syntax

public enum MessageBoxButtons

Remarks

This enumeration is used by the System.Windows.Forms.MessageBox class.

Members

Member NameDescription
AbortRetryIgnore

The message box contains Abort, Retry, and Ignore buttons.

OK

The message box contains an OK button.

OKCancel

The message box contains OK and Cancel buttons.

RetryCancel

The message box contains Retry and Cancel buttons.

YesNo

The message box contains Yes and No buttons.

YesNoCancel

The message box contains Yes, No, and Cancel buttons.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0