# MessageBox.IHandler interface

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

```cs
public interface MessageBox.IHandler
```

Handler interface for the [MessageBox](https://eto.picoe.ca/api/type/eto.forms.messagebox.md)

**Derived types:** [ThemedMessageBoxHandler](https://eto.picoe.ca/api/type/eto.forms.themedcontrols.themedmessageboxhandler.md)

## Properties

- [Buttons](https://eto.picoe.ca/api/type/eto.forms.messagebox.ihandler/buttons.md): Gets or sets which buttons to show on the message box.
- [Caption](https://eto.picoe.ca/api/type/eto.forms.messagebox.ihandler/caption.md): Gets or sets the caption for the title bar or heading of the message box.
- [DefaultButton](https://eto.picoe.ca/api/type/eto.forms.messagebox.ihandler/defaultbutton.md): Gets or sets the default button, or [MessageBoxDefaultButton.Default](https://eto.picoe.ca/api/type/eto.forms.messageboxdefaultbutton.md) to automatically select either Cancel or No if displayed.
- [Text](https://eto.picoe.ca/api/type/eto.forms.messagebox.ihandler/text.md): Gets or sets the body text of the message box.
- [Type](https://eto.picoe.ca/api/type/eto.forms.messagebox.ihandler/type.md): Gets or sets the type of message box, usually changing the icon displayed.

## Methods

- [ShowDialog](https://eto.picoe.ca/api/type/eto.forms.messagebox.ihandler/showdialog.md): Shows the dialog.
