# SelectionFormFieldEventArgs Class

> The SelectionFormFieldEventArgs class provides data for the TextControl.FormFieldSelectionChanged event.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 28.0
- **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
- **Inherits:** `System.EventArgs`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > SelectionFormFieldEventArgs Class
- **437 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfieldeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfieldeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfieldeventargs/llms-full.txt

---

### Description

The SelectionFormFieldEventArgs class provides data for the [TextControl.FormFieldSelectionChanged](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/formfieldselectionchanged-event/llms-full.txt) event.

### Syntax

```csharp
public class SelectionFormFieldEventArgs : EventArgs
```

```vbnet
Public Class SelectionFormFieldEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `SelectionFormFieldEventArgs.SelectionFormField` while handling `FormFieldSelectionChanged`.

```csharp
textControl.FormFieldSelectionChanged += (_, e) =>
{
    e.SelectionFormField?.ScrollTo();
};
```

```vbnet
AddHandler textControl.FormFieldSelectionChanged,
    Sub(sender, e)
        If e.SelectionFormField IsNot Nothing Then e.SelectionFormField.ScrollTo()
    End Sub
```

---

## In This Section

- [SelectionFormFieldEventArgs.SelectionFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfieldeventargs/selectionformfield-property/llms-full.txt): Gets an object representing the SelectionFormField that causes the event.

---

## Nearby

- **Previous:** [SelectionFormField.SelectedIndex Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfield/selectedindex-property/llms-full.txt)
- **Next:** [SelectionFormFieldEventArgs.SelectionFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/selectionformfieldeventargs/selectionformfield-property/llms-full.txt)
