System.Windows.Forms.MessageBoxDefaultButton Enumeration

Specifies constants defining the default button on a System.Windows.Forms.MessageBox.

Syntax

public enum MessageBoxDefaultButton

Remarks

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

Members

Member NameDescription
Button1

The first button on the message box is the default button.

Button2

The second button on the message box is the default button.

Button3

The third button on the message box is the default button.

Requirements

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