SpellChecker
-
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
-
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
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
-
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
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[^]