# Adding User Dictionaries to TX Spell .NET in VB6

> The TX Spell .NET ActiveX Package includes four classes: AxTXSpellChecker for spell checking, IncorrectWord for misspelled word data, OpenOfficeDictionary for Hunspell support, and UserDictionary for custom word lists. User dictionaries persist and load via path-based configuration.

- **Author:** Bjoern Meyer
- **Published:** 2012-02-02
- **Modified:** 2026-03-05
- **Description:** The TX Spell .NET ActiveX Package includes four classes: AxTXSpellChecker for spell checking, IncorrectWord for misspelled word data, OpenOfficeDictionary for Hunspell support, and UserDictionary for custom word lists. User dictionaries persist and load via path-based configuration.
- **2 min read** (267 words)
- **Tags:**
  - Spell Checking
- **Web URL:** https://www.textcontrol.com/blog/2012/02/02/adding-user-dictionaries-to-tx-spell-net-in-vb6/
- **LLMs URL:** https://www.textcontrol.com/blog/2012/02/02/adding-user-dictionaries-to-tx-spell-net-in-vb6/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2012/02/02/adding-user-dictionaries-to-tx-spell-net-in-vb6/llms-full.txt

---

Recently, we released the [Visual Basic 6 version](https://www.textcontrol.com/blog/2012/01/09/tx-spell-net-activex-package-released-spell-checking-in-vb6/llms-full.txt) of our spell checking component TX Spell .NET. This **ActiveX Package** gives you all the power and functionality of TX Spell .NET in a Visual Basic 6 compatible form.

We have added specific methods and properties that are fully compatible to Visual Basic 6 and other Win32 IDEs such as Delphi or Access. **AxTXSpell** contains 4 classes:

![TX Spell .NET ActiveX Package](https://s1-www.textcontrol.com/assets/dist/blog/2012/02/02/a/assets/txspell_ocx_1.webp "TX Spell .NET ActiveX Package")- **AxTXSpellChecker**  
    The AxTXSpellChecker class implements a component with spell checking features.
- **IncorrectWord**  
    The class IncorrectWord represents a misspelled word and provides properties such as the start index or length.
- **OpenOfficeDictionary**  
    The OpenOfficeDictionary class represents a dictionary which gets its content from a Hunspell Open Source dictionary.
- **UserDictionary**  
    The UserDictionary class represents a dictionary that allows you to use, create and edit your own dictionaries.

In order to load an existing user dictionary, a new *UserDictionary* object must be created. By specifying the *DictionaryPath*, an existing dictionary can be loaded. Finally, the new created dictionary must be added to the *AxTXSpellChecker* instance using *AddUserDictionary*.

```
Dim UserDic As AxTXSpell.UserDictionary
Set UserDic = New UserDictionary
UserDic.DictionaryPath = "c:n_US_Legal.txd"
TXSpell1.AddUserDictionary UserDic
```

Now, the user dictionary is automatically used to spell check the document. You can easily add new words to the dictionary by using the *AddWord* method. These changes can be preserved by saving the dictionary with the *Save* method:

```
UserDic.AddWord "TXTextControl"
UserDic.Save "c:n_US_Legal.txd"
```

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Service Pack 1 for TX Spell .NET 7.0 Released](https://www.textcontrol.com/blog/2019/05/28/service-pack-1-for-spell-7-released/llms.txt)
- [Proofing Tools Available As ReportingCloud Web API Endpoints](https://www.textcontrol.com/blog/2017/08/23/proofing-tools-available-as-reportingcloud-web-api-endpoints/llms.txt)
- [Using TX Spell .NET with ServerTextControl](https://www.textcontrol.com/blog/2016/04/26/using-tx-spell-net-with-servertextcontrol/llms.txt)
- [HTML5: Enable Spell Checking Using Javascript](https://www.textcontrol.com/blog/2015/10/08/html5-enable-spell-checking-using-javascript/llms.txt)
- [Web.TextControl and Spell Checking](https://www.textcontrol.com/blog/2015/02/09/webtextcontrol-and-spell-checking/llms.txt)
- [TX Spell .NET: Not Only a Spell Checker](https://www.textcontrol.com/blog/2014/11/28/tx-spell-net-not-only-a-spell-checker/llms.txt)
- [TX Text Control X11 Sneak Peek: Language Detection](https://www.textcontrol.com/blog/2014/08/25/tx-text-control-x11-sneak-peek-language-detection/llms.txt)
- [Interactive Spelling Suggestions Using TX Spell .NET](https://www.textcontrol.com/blog/2014/07/30/interactive-spelling-suggestions-using-tx-spell-net/llms.txt)
- [Sneak Peek TX Spell 5.0: Language Detection Engine](https://www.textcontrol.com/blog/2014/07/28/sneak-peek-tx-spell-50-language-detection-engine/llms.txt)
- [AutoCorrect: TWo INitial CApitals](https://www.textcontrol.com/blog/2014/07/24/autocorrect-two-initial-capitals/llms.txt)
- [TX Spell .NET: Ignore Word List Using User Dictionaries](https://www.textcontrol.com/blog/2014/01/10/tx-spell-net-ignore-word-list-using-user-dictionaries/llms.txt)
- [Special Offer: Add Spell Checking and Save 20%](https://www.textcontrol.com/blog/2013/03/05/special-offer-add-spell-checking-and-save-20/llms.txt)
- [TX Spell .NET ActiveX Package Goes CodePlex](https://www.textcontrol.com/blog/2012/11/21/tx-spell-net-activex-package-goes-codeplex/llms.txt)
- [Spell Checking, MailMerge and UserDictionaries](https://www.textcontrol.com/blog/2012/11/19/spell-checking-mailmerge-and-userdictionaries/llms.txt)
- [Using Hunspell Dictionaries from OpenOffice.org in TX Spell .NET](https://www.textcontrol.com/blog/2012/02/15/using-hunspell-dictionaries-from-openofficeorg-in-tx-spell-net/llms.txt)
- [TX Spell .NET: Exploring the Science Behind Suggestions](https://www.textcontrol.com/blog/2012/02/03/tx-spell-net-exploring-the-science-behind-suggestions/llms.txt)
- [TX Spell .NET: US English Legal Dictionary Released](https://www.textcontrol.com/blog/2012/01/27/tx-spell-net-us-english-legal-dictionary-released/llms.txt)
- [From Our Labs: New Spell Checking Concepts for DataGridViews](https://www.textcontrol.com/blog/2012/01/24/from-our-labs-new-spell-checking-concepts-for-datagridviews/llms.txt)
- [TX Spell .NET: Medical Dictionary Tested and Published](https://www.textcontrol.com/blog/2012/01/19/tx-spell-net-medical-dictionary-tested-and-published/llms.txt)
- [Add Spell Checking to TX Text Control Express](https://www.textcontrol.com/blog/2012/01/16/add-spell-checking-to-tx-text-control-express/llms.txt)
- [TX Spell .NET ActiveX Package Released - Spell Checking in VB6](https://www.textcontrol.com/blog/2012/01/09/tx-spell-net-activex-package-released-spell-checking-in-vb6/llms.txt)
- [TX Spell .NET: Creating Custom Context Menus](https://www.textcontrol.com/blog/2012/01/04/tx-spell-net-creating-custom-context-menus/llms.txt)
- [Converting 3rd-party User Dictionaries to TX Spell .NET](https://www.textcontrol.com/blog/2012/01/03/converting-3rd-party-user-dictionaries-to-tx-spell-net/llms.txt)
- [Porting RapidSpell to TX Spell .NET](https://www.textcontrol.com/blog/2011/12/22/porting-rapidspell-to-tx-spell-net/llms.txt)
- [Deploying TX Spell .NET in an XBAP Browser Application](https://www.textcontrol.com/blog/2011/12/08/deploying-tx-spell-net-in-an-xbap-browser-application/llms.txt)
