# DialogResult Enumeration

> Specifies identifiers to indicate the return value of a dialog box.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > DialogResult Enumeration
- **442 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/dialogresult/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/dialogresult/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/dialogresult/enumeration/llms-full.txt

---

### Description

Specifies identifiers to indicate the return value of a dialog box.

### Syntax

```csharp
public enum DialogResult
```

```vbnet
Public Enum DialogResult
```

### Members

| Member | Value | Description |
|---|---|---|
| Cancel | 1 | Specifies that the dialog box has been canceled. |
| None | 0 | Specifies that the dialog box has been left with the Escape key. |
| OK | 2 | Specifies that the dialog box has been left with OK. |

### Examples

The following example selects the Cancel value from the Dialog Result enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.WPF.DialogResult value = TXTextControl.WPF.DialogResult.Cancel;
Console.WriteLine($"Using Dialog Result: {value}");
```

```vbnet
Dim value As TXTextControl.WPF.DialogResult = TXTextControl.WPF.DialogResult.Cancel
Console.WriteLine($"Using Dialog Result: {value}")
```

---

## Nearby

- **Previous:** [DeleteBookmarksDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/deletebookmarksdialog/dialogitem-enumeration/llms-full.txt)
- **Next:** [GotoDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/llms-full.txt)
