# SpellCheckDialog.AcceptButton Property

> Gets or sets the dialog button that is used as the SpellCheckDialog's accept button. The default value is the Ignore Once button.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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 > SpellCheckDialog.AcceptButton Property
- **501 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/acceptbutton-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/acceptbutton-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/acceptbutton-property/llms-full.txt

---

### Description

Gets or sets the [dialog button](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/llms-full.txt) that is used as the SpellCheckDialog's accept button. The default value is the Ignore Once button.

### Syntax

```csharp
public DialogButton AcceptButton { get; set; }
```

```vbnet
Public Property AcceptButton As DialogButton
```

### Examples

The following example uses `SpellCheckDialog.AcceptButton` to configure accept button as part of the spell check dialog workflow. The configured value is checked before the workflow continues.

```csharp
spellCheckDialog.AcceptButton = new TXTextControl.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary);
if (spellCheckDialog.AcceptButton != null)
{
    Console.WriteLine("Spell Check Dialog: Accept Button is available.");
}
```

```vbnet
spellCheckDialog.AcceptButton = New TXTextControl.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary)
If spellCheckDialog.AcceptButton IsNot Nothing Then
    Console.WriteLine("Spell Check Dialog: Accept Button is available.")
End If
```

---

## Nearby

- **Previous:** [SpellCheckDialog Class](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/llms-full.txt)
- **Next:** [SpellCheckDialog.ChangeButtons Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/changebuttons-property/llms-full.txt)
