# TextControl.InputPositionChanged Event

> Occurs when the text input position has been changed. The event handler receives an argument of type EventArgs containing data related to this event.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Event
- **Namespace:** `TXTextControl`
- **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 > TextControl.InputPositionChanged Event
- **306 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/inputpositionchanged-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/inputpositionchanged-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/inputpositionchanged-event/llms-full.txt

---

### Description

Occurs when the text input position has been changed. The event handler receives an argument of type EventArgs containing data related to this event.

### Syntax

```csharp
public event EventHandler InputPositionChanged;
```

```vbnet
Public Event InputPositionChanged As EventHandler
```

### Examples

The following example records useful context when input position changed occurs.

```csharp
textControl.InputPositionChanged += (sender, e) =>
{
    Console.WriteLine($"Input Position Changed at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.InputPositionChanged,
    Sub(sender, e)
        Console.WriteLine($"Input Position Changed at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.InputPosition Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/inputposition-property/llms-full.txt)
- **Next:** [TextControl.InsertionMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/insertionmode-property/llms-full.txt)
