# TextField.DoubleClickEvent Property

> Specifies whether a TextControl.TextFieldDoubleClicked event is raised, if the end-user doubleclicks the text field. If an event is raised, the normal double-click processing, which selects a single word in the text is suppressed. The default setting of this property is true.

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

---

### Description

Specifies whether a [TextControl.TextFieldDoubleClicked](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textfielddoubleclicked-event/llms-full.txt) event is raised, if the end-user doubleclicks the text field. If an event is raised, the normal double-click processing, which selects a single word in the text is suppressed. The default setting of this property is true.

### Syntax

```csharp
public bool DoubleClickEvent { get; set; }
```

```vbnet
Public Property DoubleClickEvent As Boolean
```

### Examples

The following example inserts a Word-compatible text field into a template by using `TextField.DoubleClickEvent`.

```csharp
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);

textField.DoubleClickEvent = true;
if (textField.DoubleClickEvent)
{
    Console.WriteLine("Text Field: Double Click Event is enabled.");
}
```

```vbnet
Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)

textField.DoubleClickEvent = True
If textField.DoubleClickEvent Then
    Console.WriteLine("Text Field: Double Click Event is enabled.")
End If
```

### Remarks

If this property is set to true, the default double-click processing is disabled for the text field's text.

### See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.

---

## Nearby

- **Previous:** [TextField.Deleteable Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/deleteable-property/llms-full.txt)
- **Next:** [TextField.DoubledInputPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textfield/doubledinputposition-property/llms-full.txt)
