Share a Single TXSpellChecker Instance Across Multiple TextControls
A very helpful unique feature of TX Spell .NET is the possibility to share a single instance of the spell checker with all loaded dictionaries and user dictionaries with multiple TextControls. This saves a lot of resources as the dictionaries are shared as well. TX Spell .NET can handle multiple dictionaries at the same time and those are usable with all connected TextControls automatically. Another advantage are shared user dictionaries. You don't have to load a user dictionary for each…

A very helpful unique feature of TX Spell .NET is the possibility to share a single instance of the spell checker with all loaded dictionaries and user dictionaries with multiple TextControls. This saves a lot of resources as the dictionaries are shared as well.
TX Spell .NET can handle multiple dictionaries at the same time and those are usable with all connected TextControls automatically. Another advantage are shared user dictionaries. You don't have to load a user dictionary for each TextControl and changes that are made in one instance are used by all others immediately.
The following Form contains a TextControl and a public TXSpellChecker reference that is specified in the Form's constructor:
public partial class SpellWindow : Form
{
private TXTextControl.Proofing.TXSpellChecker m_TXSpellChecker;
public SpellWindow(TXTextControl.Proofing.TXSpellChecker TXSpellChecker)
{
m_TXSpellChecker = TXSpellChecker;
InitializeComponent();
}
private void SpellWindow_Load(object sender, EventArgs e)
{
textControl1.SpellChecker = m_TXSpellChecker;
textControl1.IsSpellCheckingEnabled = true;
}
}
The following code shows the shared TXSpellChecker instance and how to open the SpellWindow Form by passing the single TXSpellChecker instance:
TXTextControl.Proofing.TXSpellChecker txSpellChecker1 =
new TXTextControl.Proofing.TXSpellChecker();
private void button1_Click(object sender, EventArgs e)
{
SpellWindow spellWindow = new SpellWindow(txSpellChecker1);
spellWindow.Show();
}
Related Posts
Windows FormsGetting StartedTutorial
Windows Forms Tutorial: Create Your First Windows Forms C# Application
This tutorial shows how to create your first Windows Forms application with C# using TX Text Control .NET for Windows Forms in Visual Studio 2022.
How to Mail Merge MS Word DOCX Documents in ASP.NET Core C#
Mail merge is the process of merging data, such as Json or IEnumerable objects, into a template document, such as a DOC or DOCX file. This tutorial is a walkthrough of the steps necessary to…
Creating an Angular Document Editor Application with a Node.js WebSocket Server
This tutorial shows how to create an Angular application that uses the Document Editor with a Node.js WebSocket server.
Adding SVG Watermarks to Documents
This article shows how to add SVG images to document section headers that repeat automatically on each page. This watermark will be inserted vertically and horizontally centered on each section page.
Using MailMerge in ASP.NET Core 6 Web Applications
This article shows how to use the TX Text Control ASP.NET MailMerge class to merge templates with JSON data within a .NET 6 application in Visual Studio 2022.