# CommentsDialog Constructor

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

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

---

### Description

Creates a CommentsDialog 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 CommentsDialog(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 Comments Dialog instance and configures its allow transparency setting for a document workflow.

```csharp
using CommentsDialog commentsDialog = new(new TextControl());
commentsDialog.AllowTransparency = true;
```

```vbnet
Dim commentsDialog As New CommentsDialog(New TextControl())
commentsDialog.AllowTransparency = True
```

---

## Nearby

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