TX Text Control .NET for Windows Forms

DialogResult Enumeration

Enumeration
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

Description

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

Syntax

public enum Selection.DialogResult

Members

MemberValueDescription
Cancel1Specifies that the dialog box has been canceled.
None0Specifies that the dialog box has been left with the Escape key.
OK2Specifies 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.

Selection.DialogResult value = Selection.DialogResult.Cancel;
Console.WriteLine($"Using Dialog Result: {value}");