# TextControl.Colors.ActiveFormFieldColor Property

> Gets or sets the highlight color of a form field containing the current text input position. To suppress highlighting the active FormField the property value can be set to Color.Transparent.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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.Colors.ActiveFormFieldColor Property
- **365 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/activeformfieldcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/activeformfieldcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/activeformfieldcolor-property/llms-full.txt

---

### Description

Gets or sets the highlight color of a form field containing the current text input position. To suppress highlighting the active [FormField](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formfield/llms-full.txt) the property value can be set to `Color.Transparent`.

### Syntax

```csharp
public Color ActiveFormFieldColor { get; set; }
```

```vbnet
Public Property ActiveFormFieldColor As Color
```

### Examples

The following example uses `Colors.ActiveFormFieldColor` to configure active form field color as part of the colors workflow. The configured value is checked before the workflow continues.

```csharp
colors.ActiveFormFieldColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Active Form Field Color used by Colors: {colors.ActiveFormFieldColor}");
```

```vbnet
colors.ActiveFormFieldColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Active Form Field Color used by Colors: {colors.ActiveFormFieldColor}")
```

---

## Nearby

- **Previous:** [TextControl.Colors Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/llms-full.txt)
- **Next:** [TextControl.Colors Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol-colors/constructor/llms-full.txt)
