# DateFormFieldEventArgs Class

> The DateFormFieldEventArgs class provides data for the TextControl.FormFieldDateChanged 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 > DateFormFieldEventArgs Class
- **421 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/dateformfieldeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/dateformfieldeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/dateformfieldeventargs/llms-full.txt

---

### Description

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

### Syntax

```csharp
public class DateFormFieldEventArgs : EventArgs
```

```vbnet
Public Class DateFormFieldEventArgs
    Inherits EventArgs
```

### Examples

The following example uses `DateFormFieldEventArgs.DateFormField` while handling `FormFieldDateChanged`.

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

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

---

## In This Section

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

---

## Nearby

- **Previous:** [DateFormField.SupportedDateFormats Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/dateformfield/supporteddateformats-property/llms-full.txt)
- **Next:** [DateFormFieldEventArgs.DateFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/dateformfieldeventargs/dateformfield-property/llms-full.txt)
