# Context Menu and Suggestion Controls

> The spell check context menu of a Windows Forms TextControl, GetMenuItems for a ContextMenuStrip of your own, and the suggestion lists of the Spelling dialog.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Spell .NET for Windows Forms > Overview > Components > Context Menu and Suggestion Controls
- **867 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/overview/components/context-menu/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/overview/components/context-menu/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/overview/components/context-menu/llms-full.txt

---

A right-click on an underlined word lets the user correct it without leaving the text. TX Spell .NET for Windows Forms provides this context menu for TX Text Control, the menu items to build one of your own, and the lists that show suggestions in the spell check dialog. Here is what each of them is and where it is described in detail.

### The Built-In Context Menu

When a [TXSpellChecker](https://docs.textcontrol.com/tx-spell-dotnet-winforms/overview/components/txspellchecker/llms-full.txt) is connected to a `TextControl`, a right-click on a misspelled word opens a spell check menu with the suggestions for the word, **Ignore** and **Ignore All**, **Add To Dictionary** and the two dialogs, without any code:

![A TextControl with red zigzag lines under misspelled words and the spell check context menu of the word "sampke": the suggestions sample, spake, smoke, samples and sampler, then Ignore, Ignore All and a disabled Add To Dictionary, then Spell Check Dialog and Options.](https://docs.textcontrol.com/assets/img/tx-spell-dotnet-winforms/textcontrol-context-menu.5b60b5a7.webp)

The [SpellCheckContextMenuStrip](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/spellcheckcontextmenustrip-property/llms-full.txt) property of the `TextControl` turns it off or replaces it; [Context Menus](https://docs.textcontrol.com/tx-spell-dotnet-winforms/user-interface/context-menus/llms-full.txt) describes both.

### Menu Items for a Menu of Your Own

[GetMenuItems](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/getmenuitems-method/llms-full.txt) creates the spelling items for a misspelled word: its suggestions, **Ignore**, **Ignore All** and **Add To Dictionary**. Each item is a [MenuItem](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/menuitem/llms-full.txt), derived from `ToolStripMenuItem`, and carries out its action when it is clicked:

```csharp
spellMenu.Items.AddRange(txSpellChecker1.GetMenuItems(word, textControl1, 5));
```

The items go into any `ContextMenuStrip`, next to the commands of your application. Another overload creates them for a word of a `RichTextBox` or a `TextBox`. The [MenuItemClicked](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/menuitemclicked-event/llms-full.txt) event reports each click.

### Suggestion Lists

TX Spell .NET has no separate suggestion control to drop on a form. Suggestions appear in the lists of the spell check dialog, at the top of the context menu, and in controls of your own that you fill with [CreateSuggestions](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/createsuggestions-method/llms-full.txt) or bind to the [SpellingCorrectionUIProvider](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider/llms-full.txt). [Suggestion Controls](https://docs.textcontrol.com/tx-spell-dotnet-winforms/user-interface/suggestions/llms-full.txt) describes each place.

### Where to Read More

| Topic | Page |
|---|---|
| The built-in menu, a menu built with `GetMenuItems`, the item types, menus for a `RichTextBox` | [Context Menus](https://docs.textcontrol.com/tx-spell-dotnet-winforms/user-interface/context-menus/llms-full.txt) |
| The suggestion lists of the dialog and the menu, and suggestions in a `ListBox` | [Suggestion Controls](https://docs.textcontrol.com/tx-spell-dotnet-winforms/user-interface/suggestions/llms-full.txt) |
| A correction panel bound to the `SpellingCorrectionUIProvider` | [Spelling Correction Modes and UI Provider](https://docs.textcontrol.com/tx-spell-dotnet-winforms/spell-checking/correction-modes/llms-full.txt) |
| Suggestions in code | [Incorrect Words and Suggestions](https://docs.textcontrol.com/tx-spell-dotnet-winforms/spell-checking/suggestions/llms-full.txt) |
| A first application with the menu | [Correct Words from the Context Menu](https://docs.textcontrol.com/tx-spell-dotnet-winforms/getting-started/tx-text-control/context-menu/llms-full.txt) |

### Next Steps

- [Spell Check Dialog and Options Dialog](https://docs.textcontrol.com/tx-spell-dotnet-winforms/overview/components/dialogs/llms-full.txt): the dialogs the menu opens.
- [TXSpellChecker](https://docs.textcontrol.com/tx-spell-dotnet-winforms/overview/components/txspellchecker/llms-full.txt): the component behind the menu.
- [Context Menus](https://docs.textcontrol.com/tx-spell-dotnet-winforms/user-interface/context-menus/llms-full.txt): the menu in detail.

---

## Nearby

- **Previous:** [Spell Check Dialog and Options Dialog](https://docs.textcontrol.com/tx-spell-dotnet-winforms/overview/components/dialogs/llms-full.txt)
- **Next:** [TXSpell](https://docs.textcontrol.com/tx-spell-dotnet-winforms/overview/components/txspell/llms-full.txt)
