Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. SpellChecker

SpellChecker

Scheduled Pinned Locked Moved C#
csharpsalesperformancehelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Murugavel Sadagopan
    wrote on last edited by
    #1

    Hi, I have created a Texteditor using C#. In this I am using Spellchecker with the help of NHunspell. When i am entering more than 60000 characters its hanged. Its performance is too slow. But its very fast while the spellchecker is off. How can i achieve the spellchecker is on for the customer view page only onto the entire. The following code that i can used for dictionary on/off if (btnsCheck.BackColor==Color.Green) { this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, false); this.NHunspellTextBoxExtender1.SpellAsYouType = false; btnsCheck.BackColor = Color.Red; } else { this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, true); string TempSt = this.TextEditor.SelectedText; this.NHunspellTextBoxExtender1.SpellAsYouType = true; this.TextEditor.SelectedText = " quot;; btnsCheck.BackColor = Color.Green; } } Thanks, Murugavel S

    A U 2 Replies Last reply
    0
    • M Murugavel Sadagopan

      Hi, I have created a Texteditor using C#. In this I am using Spellchecker with the help of NHunspell. When i am entering more than 60000 characters its hanged. Its performance is too slow. But its very fast while the spellchecker is off. How can i achieve the spellchecker is on for the customer view page only onto the entire. The following code that i can used for dictionary on/off if (btnsCheck.BackColor==Color.Green) { this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, false); this.NHunspellTextBoxExtender1.SpellAsYouType = false; btnsCheck.BackColor = Color.Red; } else { this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, true); string TempSt = this.TextEditor.SelectedText; this.NHunspellTextBoxExtender1.SpellAsYouType = true; this.TextEditor.SelectedText = " quot;; btnsCheck.BackColor = Color.Green; } } Thanks, Murugavel S

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      Have a look at NHunspellTextBoxExtender - A Spellchecking IExtenderProvider for TextBoxes using Hunspell for .NET[^]. Look at the Optimizations section in the article. Preventing redrawing and scrolling could improve performance too.

      Build your own survey - http://www.factile.net

      1 Reply Last reply
      0
      • M Murugavel Sadagopan

        Hi, I have created a Texteditor using C#. In this I am using Spellchecker with the help of NHunspell. When i am entering more than 60000 characters its hanged. Its performance is too slow. But its very fast while the spellchecker is off. How can i achieve the spellchecker is on for the customer view page only onto the entire. The following code that i can used for dictionary on/off if (btnsCheck.BackColor==Color.Green) { this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, false); this.NHunspellTextBoxExtender1.SpellAsYouType = false; btnsCheck.BackColor = Color.Red; } else { this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, true); string TempSt = this.TextEditor.SelectedText; this.NHunspellTextBoxExtender1.SpellAsYouType = true; this.TextEditor.SelectedText = " quot;; btnsCheck.BackColor = Color.Green; } } Thanks, Murugavel S

        U Offline
        U Offline
        Unnikrishnan_S_N
        wrote on last edited by
        #3

        Hi Murugavel, I think you should be using background thread to do spell checks to overcome UI unresponsiveness. Execute your spellcheck call this.NHunspellTextBoxExtender1.SetSpellCheckEnabled(this.TextEditor, false); in a different thread. http://msdn.microsoft.com/en-us/library/cc221403%28v=vs.95%29.aspx[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups