[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Collapse]Spell Checker
   [Expand]Product Information
   [Expand]Getting Started
   [Expand]Visual Elements
   [Expand]Design-Time Features
     How to: Add Dictionaries at Runtime
     How to: Switch Between Languages
     How to: Use the SharedDictionaryStorage Component
     How to: Check Spelling of a Grid Cell
     How to: Turn On the Check-As-You-Type Mode
     How to: Add Spell Check Menu to the Standard Text Controls
     How to: Obtain a List of Commands for the Misspelled Word
     How To: Customize the Spelling Dialog
     How to: Customize the Spelling Options Dialog
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How To: Customize the Spelling Dialog

This example demonstrates how to customize the spell checker's Spelling Dialog.

You can modify layouts of both Outlook-inspired and Word-inspired Spelling Dialogs by doing the following.

  1. Handle the SpellChecker.SpellingFormShowing event. It is raised when the form is about to be shown.
  2. Retrieve the Spelling Dialog's form from the SpellChecker.FormsManager collection.
  3. Modify the form's Controls collection to hide default buttons and/or to add custom control.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T422124.

The following image illustrates a customized Spelling Dialog.

Expanded Table of Controls

The code sample above utilizes default control names to access them. The following table gives names for all of these default controls, owned by a spelling dialog.

Element Caption


Element Name

Add to Dictionary (Add) button SimpleButton btnAdd
Cancel button SimpleButton btnCancel
Change button SimpleButton btnChange
Change All button SimpleButton btnChangeAll
Close button SimpleButton btnClose
Ignore Once (Ignore) button SimpleButton btnIgnore
Ignore All button SimpleButton btnIgnoreAll
Undo Last button SimpleButton btnUndoLast
Not In Dictionary label LabelEdit lblNotInDictionary
Suggestions label LabelEdit lblSuggestions
Repeated Word label LabelEdit lblRepeatedWord
Delete button SimpleButton btnDelete
Not in Dictionary memo edit (Word-type form) CustomSpellCheckMemoEdit mmNotInDictionary
Suggestions list box ListBoxControl lbcSuggestions
Options button SimpleButton btnOptions
Not in Dictionary text edit (Outlook-type form) TextEdit txtNotInDictionary
Change to: text edit (Outlook-type form) TextEdit txtChangeTo

Is this topic helpful?​​​​​​​