# TextControl.ManageConditionalInstructionsDialog Method

> Opens a dialog box to add, edit or delete Conditional Instructions inside the document.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.ManageConditionalInstructionsDialog Method
- **493 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/manageconditionalinstructionsdialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/manageconditionalinstructionsdialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/manageconditionalinstructionsdialog-method/llms-full.txt

---

### Description

Opens a dialog box to add, edit or delete Conditional Instructions inside the document.

### Syntax

```csharp
public System.Windows.Forms.DialogResult ManageConditionalInstructionsDialog();
```

```vbnet
Public Function ManageConditionalInstructionsDialog() As System.Windows.Forms.DialogResult
```

### Return Value

The return value can be one of the following values:

| Result | Meaning |
|---|---|
| DialogResult.OK | The dialog has been left with the `OK` button and any changes to the document's `Conditional Instructions` were adopted. |
| DialogResult.Cancel | The dialog has been left with the `Cancel` button. |
| DialogResult.Abort | The dialog has not been opened. |

### Examples

The following example opens the manage conditional instructions dialog for the text control.

```csharp
var result = textControl.ManageConditionalInstructionsDialog();
Console.WriteLine($"Manage Conditional Instructions Dialog result: {result}");
```

```vbnet
Dim result = textControl.ManageConditionalInstructionsDialog()
Console.WriteLine($"Manage Conditional Instructions Dialog result: {result}")
```

### Limitations

The dialog cannot be opened, if the [TextControl.IsFormFieldValidationEnabled](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/isformfieldvalidationenabled-property/llms-full.txt) is set to false. In this case the method returns `DialogResult.Abort`.

---

## Nearby

- **Previous:** [TextControl.MainTextActivated Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/maintextactivated-event/llms-full.txt)
- **Next:** [TextControl.MiniToolbarOpening Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/minitoolbaropening-event/llms-full.txt)
