spell checker
I am using web browser control in c#.. i just want to use spell checker...I am added netspell dll for dis.. I don't know how to impliment spellchecker in my code.. please give me solution...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
priyaPosted Apr 30, 2015, 5:49 AM
priyaPosted Apr 30, 2015, 5:49 AM
Gowtham RajamanickamPosted Apr 30, 2015, 4:23 AM
rohit gothechaPosted Apr 30, 2015, 4:19 AM
Please find the Attatched file...
/*---------------*/
internal System.Windows.Forms.RichTextBox Document;
internal NetSpell.SpellChecker.Spelling SpellChecker;
// add event handlers
this.SpellChecker.MisspelledWord +=
new NetSpell.SpellChecker.Spelling.MisspelledWordEventHandler(
this.SpellChecker_MisspelledWord);
this.SpellChecker.EndOfText +=
new NetSpell.SpellChecker.Spelling.EndOfTextEventHandler(
this.SpellChecker_EndOfText);
this.SpellChecker.DoubledWord +=
new NetSpell.SpellChecker.Spelling.DoubledWordEventHandler(
this.SpellChecker_DoubledWord);
private void SpellChecker_DoubledWord(object sender,
NetSpell.SpellChecker.SpellingEventArgs args)
{
// update text
this.Document.Text = this.SpellChecker.Text;
}
private void SpellChecker_EndOfText(object sender,
System.EventArgs args)
{
// update text
this.Document.Text = this.SpellChecker.Text;
}
private void SpellChecker_MisspelledWord(object sender,
NetSpell.SpellChecker.SpellingEventArgs args)
{
// update text
this.Document.Text = this.SpellChecker.Text;
}
// Start Spell Checking
SpellChecker.Text = this.Document.Text;
SpellChecker.SpellCheck();