TX Text Control .NET for Windows Forms

FormFieldTextChanged Event

Event|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Occurs when the text of a TextFormField has been changed. The event handler receives an argument of type TextFormFieldEventArgs containing data related to this event. The event occurs only when the text has been changed through typing or deleting text with the keyboard and after the text input position has left the field.

Syntax

public event TextFormFieldEventHandler FormFieldTextChanged;

Examples

The following example records useful context when form field text changed occurs.

textControl.FormFieldTextChanged += (sender, e) =>
{
    Console.WriteLine($"Form Field Text Changed at {DateTime.Now:u}");
};