# MessageDialog

Xojo provides a <span class="title-ref">MessageDialog</span> control for desktop and web projects:

- `MessageDialog</api/user_interface/desktop/messagedialog>`
- `WebMessageDialog</api/user_interface/web/webmessagedialog>`

<div class="tip">

<div class="title">

Tip

</div>

For mobile apps, `MobileMessageBox</api/user_interface/mobile/mobilemessagebox>` provides most of the same functionality.

</div>

## Common members

These events, methods and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

### Methods

| Name | Description              |
|------|--------------------------|
| Show | Displays the dialog box. |

### Properties

| Name                    | Description                                                         |
|-------------------------|---------------------------------------------------------------------|
| ActionButton            | The default button.                                                 |
| AlternativeActionButton | An optional secondary button that is not a default button.          |
| CancelButton            | An optional button that responds to the OS-specified cancel action. |
| Message                 | The primary message to be displayed in the dialog box.              |
| Title                   | The title of the dialog window.                                     |

<div class="seealso">

`MessageDialog</api/user_interface/desktop/messagedialog>` and `WebMessageDialog</api/user_interface/web/webmessagedialog>`

</div>
