# TXSpellChecker.OptionsDialogOpening Event

> Occurs when a the built-in options dialog is invoked by the TXSpellChecker.OptionsDialog method or clicking the Options... button of the built-in SpellCheckDialog. The OptionsDialogOpeningHandler receives an argument of type OptionsDialogOpeningEventArgs 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.OptionsDialogOpening Event
- **371 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/optionsdialogopening-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/optionsdialogopening-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/optionsdialogopening-event/llms-full.txt

---

### Description

Occurs when a the built-in options dialog is invoked by the [TXSpellChecker.OptionsDialog](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/optionsdialog-method/llms-full.txt) method or clicking the Options... button of the built-in SpellCheckDialog. The OptionsDialogOpeningHandler receives an argument of type [OptionsDialogOpeningEventArgs](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/optionsdialogopeningeventargs/llms-full.txt) containing data related to this event.

### Syntax

```csharp
public event OptionsDialogOpeningHandler OptionsDialogOpening;
```

```vbnet
Public Event OptionsDialogOpening As OptionsDialogOpeningHandler
```

### Examples

The following example records useful context when options dialog opening occurs.

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

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

---

## Nearby

- **Previous:** [TXSpellChecker.OptionsDialog Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/optionsdialog-method/llms-full.txt)
- **Next:** [TXSpellChecker.SpellCheckDialog Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/spellcheckdialog-property/llms-full.txt)
