# RibbonTextBox.TextValidated Event

> Occurs when text box's text is validated.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **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.Windows.Forms.Ribbon > RibbonTextBox.TextValidated Event
- **300 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/textvalidated-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/textvalidated-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/textvalidated-event/llms-full.txt

---

### Description

Occurs when text box's [text](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/text-property/llms-full.txt) is validated.

### Syntax

```csharp
public event EventHandler TextValidated;
```

```vbnet
Public Event TextValidated As EventHandler
```

### Examples

The following example records useful context when text validated occurs.

```csharp
ribbonTextBox.TextValidated += (sender, e) =>
{
    Console.WriteLine($"Text Validated at {DateTime.Now:u}");
};
```

```vbnet
AddHandler ribbonTextBox.TextValidated,
    Sub(sender, e)
        Console.WriteLine($"Text Validated at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [RibbonTextBox.TextBoxWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/textboxwidth-property/llms-full.txt)
- **Next:** [RibbonTextBox.ToolTip Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/tooltip-property/llms-full.txt)
