# GotoDialog Constructor

> Creates a GotoDialog object for the specified Windows Forms TextControl.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 23.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 > GotoDialog Constructor
- **369 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/gotodialog/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/gotodialog/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/gotodialog/constructor/llms-full.txt

---

### Description

Creates a GotoDialog object for the specified Windows Forms [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt).

### Syntax

```csharp
public GotoDialog(TextControl textControl);
```

```vbnet
Public Sub New(textControl As TextControl)
```

### Parameters

| Parameter | Description |
|---|---|
| textControl | Specifies the [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt) for which the dialog box is opened. |

### Examples

The following example creates a Goto Dialog instance and configures its allow transparency setting for a document workflow.

```csharp
using GotoDialog gotoDialog = new(new TextControl());
gotoDialog.AllowTransparency = true;
```

```vbnet
Dim gotoDialog As New GotoDialog(New TextControl())
gotoDialog.AllowTransparency = True
```

---

## Nearby

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