Home   Free Applications   Code Snippets   Fun Stuff 
 
 You are here: Home > Free Applications > NetSpell > Discussion Forum
Register   Login  

 
Site Navigation


Print Print this page
Email E-mail this page
Bookmark Add to Favorites

  Discussion Forum

Author Thread: how to set a focus on textarea and highlight he mispelled word
raghavlyon
how to set a focus on textarea and highlight he mispelled word
Posted: Monday, May 07, 2007 4:05 PM (EST)

I am using ASP.NET and NetSpell works fine for me.

I have one issue with NetSpell, when I run a spell checker on a page it perform the check in all INPUT, TEXTAREA but it does not focus to the particular section when gets any mispelling. I want to highlight the mispelled text in INPUT or TEXAREA and set forcu to particular object.

Does any one have an idea how to do that?

Regards,

Raghav 


Comments:

Author Thread:
vvel
how to set a focus on textarea and highlight he mispelled word
Posted: Tuesday, May 08, 2007 10:34 AM (EST)

I can't find any documentations on how to use SpellCheck. I downloded SpellCheck and added reference to my project, but i don't know what to do next.

Can you please help me, since you are already using it on your app.

Thanks,

vvel

jbartels
how to set a focus on textarea and highlight he mispelled word
Posted: Wednesday, May 23, 2007 4:13 PM (EST)
I haven't implemented this yet, but the rough process should be this: 1. Call the SpellCheck(string) method only for the most recent word typed. You'll have to put this logic inside a TextChanged event in your TextArea. 2. Add an event handler method on the MisspelledWordEvent 3. The SpellingEventArgs will have the starting position and length of the misspelled word. Once you have those you can update the Selected property in the TextArea.



Top