Name

MessageBoxButtons

Synopsis

This enumeration lists the various button combinations you can request in the MessageBox.Show() method.


public enum MessageBoxButtons {

   OK = 0,

   OKCancel = 1,

   AbortRetryIgnore = 2,

   YesNoCancel = 3,

   YesNo = 4,

   RetryCancel = 5

}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparabl, System.IFormattable, System.IConvertible) MessageBoxButtons

Passed To

System.Windows.Forms.Design.IUIService.ShowMessage(), MessageBox.Show()

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.