# MessageBoxDefaultButton enum

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public enum MessageBoxDefaultButton
```

Message box default button selection for a [MessageBox](https://eto.picoe.ca/api/type/eto.forms.messagebox.md)

**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.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Default | 0 | Automatically select the default button, preferring the negative form first such as [MessageBoxDefaultButton.Cancel](https://eto.picoe.ca/api/type/eto.forms.messageboxdefaultbutton.md), then [MessageBoxDefaultButton.No](https://eto.picoe.ca/api/type/eto.forms.messageboxdefaultbutton.md). |
| OK | 1 | The OK button is default |
| Yes | 1 | The Yes button is default |
| No | 2 | The No button is default |
| Cancel | 3 | The Cancel button is default |
