TX Text Control: Using TX Spell .NET with multiple TX Text Control instances

A high-performance spell checker requires a well-considered concept to work with multiple controls on a form in the same application. A single TX Spell .NET instance can be used with multiple instances of TextControl. It is not necessary to have one instance of the spell checker for each instance of TextControl. This dramatically reduces the required memory and speeds up the spell checking process.

The source code is contained in the following directories:

Using TX Spell .NET with multiple TX Text Control instances

The concept of using multiple instances of TextControl with the same instance of TX Spell .NET is very straightforward. It is not neccessary to switch manually between the controls. Different from other spell checker components, the connection between the consuming control and TX Spell .NET is set with TextControl. TX Text Control searches for the TXSpellChecker instances in every resource part of the application.

To connect TX Spell .NET with the TextControl, the SpellChecker property of each TextControl must be connected to the same TX Spell .NET instance:

After starting the application, each connected TextControl uses the same TX Spell .NET instance and therefore the same resources, dictionaries and user dictionaries.