# TextControl.CannotTrackChange Event

> Determines how to handle a change of the document that cannot be added to the list of tracked changes. Complex table layout changes, such as deleting a table column or merging table cells cannot be tracked. The default handling shows a MessageBox asking the end-user whether the change of the document should be performed. The event handler receives an argument of type CannotTrackChangeEventArgs containing data related to this event. Using the CannotTrackChangeEventArgs.Handled and the CannotTrackChangeEventArgs.Cancel property the default handling can be changed.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.CannotTrackChange Event
- **435 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/cannottrackchange-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/cannottrackchange-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/cannottrackchange-event/llms-full.txt

---

### Description

Determines how to handle a change of the document that cannot be added to the list of tracked changes. Complex table layout changes, such as deleting a table column or merging table cells cannot be tracked. The default handling shows a MessageBox asking the end-user whether the change of the document should be performed. The event handler receives an argument of type [CannotTrackChangeEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/llms-full.txt) containing data related to this event. Using the [CannotTrackChangeEventArgs.Handled](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/handled-property/llms-full.txt) and the [CannotTrackChangeEventArgs.Cancel](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/cancel-property/llms-full.txt) property the default handling can be changed.

### Syntax

```csharp
public event CannotTrackChangeEventHandler CannotTrackChange;
```

```vbnet
Public Event CannotTrackChange As CannotTrackChangeEventHandler
```

### Examples

The following example records useful context when cannot track change occurs.

```csharp
textControl.CannotTrackChange += (sender, e) =>
{
    Console.WriteLine($"Handled: {e.Handled}");
};
```

```vbnet
AddHandler textControl.CannotTrackChange,
    Sub(sender, e)
        Console.WriteLine($"Handled: {e.Handled}")
    End Sub
```

---

## Nearby

- **Previous:** [TextControl.CanEditFormFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/caneditformfields-property/llms-full.txt)
- **Next:** [TextControl.CanParagraphFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/canparagraphformat-property/llms-full.txt)
