# DialogResult

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Specifies the return value of a dialog box.

{% tabs %}
{% tab title="C#" %}

```csharp
public enum DialogResult : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum DialogResult As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name       | Description                                                                        |
| ---------- | ---------------------------------------------------------------------------------- |
| **Abort**  | The dialog box return value is Abort (usually sent from a button labeled Abort).   |
| **Cancel** | The dialog box return value is Cancel (usually sent from a button labeled Cancel). |
| **Ignore** | The dialog box return value is Ignore (usually sent from a button labeled Ignore). |
| **No**     | The dialog box return value is No (usually sent from a button labeled No).         |
| **None**   | Nothing is returned from the dialog box.                                           |
| **OK**     | The dialog box return value is OK (usually sent from a button labeled OK).         |
| **Retry**  | The dialog box return value is Retry (usually sent from a button labeled Retry).   |
| **Yes**    | The dialog box return value is Yes (usually sent from a button labeled Yes).       |

## Used By

| Name                                                                                                                                                                              | Description                                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [CommonDialog.ShowDialog](https://docs.wisej.com/api/common-dialogs/wisej.web.commondialog#showdialog)                                                                            | Runs a common dialog box with a default owner.                                                                                                                                                    |
| [Button.DialogResult](https://docs.wisej.com/api/buttons/button#dialogresult)                                                                                                     | Returns or sets a value that is returned to the parent form when the button is clicked.                                                                                                           |
| [Form.DialogResult](https://docs.wisej.com/api/containers/form#dialogresult)                                                                                                      | Returns or sets the dialog result for the form.                                                                                                                                                   |
| [Form.ShowDialog](https://docs.wisej.com/api/containers/form#showdialog-onclose)                                                                                                  | Shows the form as a modal dialog box. When the *onclose* is specified, the dialog is modal only in the browser.                                                                                   |
| [Label.DialogResult](https://docs.wisej.com/api/content/wisej.web.label#dialogresult)                                                                                             | Returns or sets a value that is returned to the parent form when the button is clicked.                                                                                                           |
| [MessageBox.Show](https://docs.wisej.com/api/notifications/messagebox#show-text-caption-buttons-icon-defaultbutton-modal-allowhtml-keeponscreen-righttoleft-onclose)              | Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button.                                                                                 |
| [PictureBox.DialogResult](https://docs.wisej.com/api/content/wisej.web.picturebox#dialogresult)                                                                                   | Returns or sets a value that is returned to the parent form when the button is clicked.                                                                                                           |
| [IButtonControl.DialogResult](https://docs.wisej.com/api/interfaces/wisej.web.ibuttoncontrol#dialogresult)                                                                        | Returns or sets the value returned to the parent form when the button is clicked.                                                                                                                 |
| [IButtonControlExtensions.DialogResult](https://docs.wisej.com/api/wisej.web.markup/extensions/wisej.web.markup.ibuttoncontrolextensions#dialogresult-buttoncontrol-dialogresult) | Sets the DialogResult property of the specified [IButtonControl](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.ibuttoncontrol).                                                       |
| [IWisejEditorService.ShowDialog](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejeditorservice#showdialog-dialog)                                               | Shows the specified [Form](https://docs.wisej.com/api/wisej.web/containers/form) and returns its [DialogResult](https://docs.wisej.com/api/containers/form#dialogresult) when the user closes it. |
