# TXSpellChecker.IncorrectWordChanging Event

> Occurs when an object of type IncorrectWord is changing by spell check context menu or spell check dialog operations. The IncorrectWordChangingHandler receives an argument of type IncorrectWordChangingEventArgs containing data related to this event.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 3.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.Windows.Forms.dll` from the setup
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > TXSpellChecker.IncorrectWordChanging Event
- **451 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/incorrectwordchanging-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/incorrectwordchanging-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/incorrectwordchanging-event/llms-full.txt

---

### Description

Occurs when an object of type [IncorrectWord](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectword/llms-full.txt) is changing by [spell check context menu](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/getmenuitems-method/llms-full.txt) or [spell check dialog](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/spellcheckdialog-property/llms-full.txt) operations. The IncorrectWordChangingHandler receives an argument of type [IncorrectWordChangingEventArgs](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event IncorrectWordChangingHandler IncorrectWordChanging;
```

```vbnet
Public Event IncorrectWordChanging As IncorrectWordChangingHandler
```

### Examples

The following example records useful context when incorrect word changing occurs.

```csharp
tXSpellChecker.IncorrectWordChanging += (sender, e) =>
{
    Console.WriteLine($"Cancel: {e.Cancel}");
};
```

```vbnet
AddHandler tXSpellChecker.IncorrectWordChanging,
    Sub(sender, e)
        Console.WriteLine($"Cancel: {e.Cancel}")
    End Sub
```

### Remarks

This event does not occur on changing objects of type `TXTextControl.MisspelledWord`. Those operations are handled by the [MisspelledWordChanging](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/misspelledwordchanging-event/llms-full.txt) event.

---

## Nearby

- **Previous:** [TXSpellChecker.IgnoreWord Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/ignoreword-property/llms-full.txt)
- **Next:** [TXSpellChecker.IncorrectWords Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/incorrectwords-property/llms-full.txt)
