# TXSpellChecker.DialogButtonClicked Event

> Occurs when a dialog button of the built-in SpellCheckDialog is clicked. The DialogButtonHandler receives an argument of type DialogButtonEventArgs containing data related to this event.

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

---

### Description

Occurs when a dialog button of the built-in SpellCheckDialog is clicked. The DialogButtonHandler receives an argument of type DialogButtonEventArgs containing data related to this event.

### Syntax

```csharp
public event DialogButtonHandler DialogButtonClicked;
```

```vbnet
Public Event DialogButtonClicked As DialogButtonHandler
```

### Examples

The following example records useful context when dialog button clicked occurs.

```csharp
tXSpellChecker.DialogButtonClicked += (sender, e) =>
{
    Console.WriteLine($"Dialog Button Clicked at {DateTime.Now:u}");
};
```

```vbnet
AddHandler tXSpellChecker.DialogButtonClicked,
    Sub(sender, e)
        Console.WriteLine($"Dialog Button Clicked at {DateTime.Now:u}")
    End Sub
```

---

## Nearby

- **Previous:** [TXSpellChecker.DetectLanguageScopes Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/detectlanguagescopes-method/llms-full.txt)
- **Next:** [TXSpellChecker.Dictionaries Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/dictionaries-property/llms-full.txt)
