# TextControlColors.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 Colors.Transparent.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControlColors.ActiveFormFieldColor Property
- **391 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/activeformfieldcolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/activeformfieldcolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/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-wpf/reference/txtextcontrol/formfield/llms-full.txt) the property value can be set to `Colors.Transparent`.

### Syntax

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

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

### Examples

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

```csharp
textControlColors.ActiveFormFieldColor = System.Windows.Media.Colors.CornflowerBlue;
Console.WriteLine($"Active Form Field Color used by Text Control Colors: {textControlColors.ActiveFormFieldColor}");
```

```vbnet
textControlColors.ActiveFormFieldColor = System.Windows.Media.Colors.CornflowerBlue
Console.WriteLine($"Active Form Field Color used by Text Control Colors: {textControlColors.ActiveFormFieldColor}")
```

---

## Nearby

- **Previous:** [TextControlColors Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/llms-full.txt)
- **Next:** [TextControlColors Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrolcolors/constructor/llms-full.txt)
