Hello,
If you need to make the AutoRelaceList assigned to a single C1SpellChecker object available to all the forms in your application, then you may try the following workaround :
1. Create a UserControl "MySpellChecker" containing an instance of C1SpellChecker.
2. Say your list is contained in a datatable 'dt’, assign this list to the spellchecker object as follows :
foreach (DataRow dr in _dt.Rows) { c1SpellChecker1.AutoReplaceList[(string)dr["key"]] = (string)dr["text"]; }
3. Now drop this "MySpellChecker" control’s instance on every form in your application.
4. And set spellchecking on each textbox on every form as follows :
mySpellChecker1.c1SpellChecker1.SetActiveSpellChecking(richTextBox1, true); mySpellChecker1.c1SpellChecker1.SetActiveSpellChecking(textBox1, true);
Please refer to the attached sample implementing the same.
Let me know if this works for you or not.
Regards,
Reema