# FieldAdapter.ShowDialog Method

> Opens the specific field options dialog box.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DocumentServer.Fields > FieldAdapter.ShowDialog Method
- **1011 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/fieldadapter/showdialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/fieldadapter/showdialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/fieldadapter/showdialog-method/llms-full.txt

---

### Description

Opens the specific field options dialog box.

### Syntax

#### ShowDialog()

Opens the specific field options dialog box with LTR flow direction.

```csharp
public DialogResult ShowDialog();
```

```vbnet
Public Function ShowDialog() As DialogResult
```

#### ShowDialog(bool)

Opens the specific field options dialog box with the flow direction (RTL or LTR) set according to the boolean parameter value.

```csharp
public DialogResult ShowDialog(bool rightToLeft);
```

```vbnet
Public Function ShowDialog(rightToLeft As Boolean) As DialogResult
```

| Parameter | Description |
|---|---|
| rightToLeft | Sets the dialog layout flow direction. True sets the layout to RTL, false sets the layout to LTR. |

#### ShowDialog(object)

Opens the specific field options dialog box with a specified owner window.

```csharp
public DialogResult ShowDialog(object owner);
```

```vbnet
Public Function ShowDialog(owner As Object) As DialogResult
```

| Parameter | Description |
|---|---|
| owner | Sets the dialog's owner window. For WPF dialogs this must be an object of type System.Windows.Window. For Windows Forms dialogs this must be an object implementing the interface System.Windows.Forms.IWin32Window (e. g. a Form). |

#### ShowDialog(object, bool)

Opens the specific field options dialog box with an owner window and a flow direction.

```csharp
public DialogResult ShowDialog(object owner, bool rightToLeft);
```

```vbnet
Public Function ShowDialog(owner As Object, rightToLeft As Boolean) As DialogResult
```

| Parameter | Description |
|---|---|
| owner | Sets the dialog's owner window. For WPF dialogs this must be an object of type System.Windows.Window. For Windows Forms dialogs this must be an object implementing the interface System.Windows.Forms.IWin32Window (e. g. a Form). |
| rightToLeft | Sets the dialog layout flow direction. True sets the layout to RTL, false sets the layout to LTR. |

### Examples

The following example opens the show dialog for the field adapter.

```csharp
var result = fieldAdapter.ShowDialog("Approved", true);
Console.WriteLine($"Show Dialog result: {result}");
```

```vbnet
Dim result = fieldAdapter.ShowDialog("Approved", True)
Console.WriteLine($"Show Dialog result: {result}")
```

---

## Nearby

- **Previous:** [FieldAdapter.Length Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/fieldadapter/length-property/llms-full.txt)
- **Next:** [FieldAdapter.Start Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/fieldadapter/start-property/llms-full.txt)
