Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
How to use UltraSpellChecker with Windows RichTextBox
posted

Hi there,

I am creating RichTextBox controls dynamically in code. It appears that when I add a rich text box to the form via the designer, it is extended appropriately (has a spellchecker property). However, when I create a richTextBox in code, it does not have the SpellChecker property.

Can you tell me the syntax for getting this to work, so that when I create a richTextBox editor dynamically it can access an existing spellchecker component?  Is there an alternate approach?

Thank you!

Parents
No Data
Reply
  • 71886
    Offline posted

    Hello,

    You could try the following code:

    SpellCheckerSettings s = new SpellCheckerSettings(true);
    this.ultraSpellChecker1.SetSpellCheckerSettings(this.richTextBox1, s);

     Please feel free to let me know if I misunderstood you or if you have any other questions.

Children