Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 08, 2016, 12:08:23 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Need help from someone who's used NetSpell  (Read 1252 times)

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,120
    • View Profile
    • Donate to Member
Need help from someone who's used NetSpell
« on: March 29, 2011, 07:27:56 AM »
I'm using Paul Welter's Netspell for the first time, and have rigged up a test harness.  I've placed the needed DLL and dictionary files in the necessary /bin/ subfolder (I'm programming in C#, and will attach a zip of my test project):

NetSpell1.png

I've created a test harness C# WinForms application with a textbox and a command button that invokes the SpellChecker.  I enter a single intentionally misspelled word, "dictionery" (which should be "dictionary") into the textbox, and click the command button to invoke the spell checker.  The SpellChecker_MisspelledWord() method gets called, as it should, and NetSpell's internal "Suggested Words" form pops up.  I select the first suggested word, which happens to be the correct spelling, and click the "Replace" button.  

NetSpell2.png

Of course, I get a Not Implemented exception because I've not yet implemented the SpellChecker_ReplacedWord event.

NetSpell3.png

I know there's a SpellChecker.ReplaceWord() method, but am not sure where/how to use it.

What I want to happen: when I select the correctly spelled word, "dictionary" (see second screenshot above), and click the Replace button, I want to programmatically replace my program's textbox's incorrectly spelled word "dictionery" with the replacement word.  Even more helpful that a post of corrective action would be a post of corrective action and an attached zip of my project modified so that it works.

Any help appreciated.  I've been looking at the methods and events in Object Viewer, but so far nothing has clicked in my head...
« Last Edit: March 29, 2011, 07:34:19 AM by kyrathaba »

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,120
    • View Profile
    • Donate to Member
Re: Need help from someone who's used NetSpell
« Reply #1 on: March 29, 2011, 07:51:23 PM »
I think I figured out what I want to do.  I'm attaching a screencast of it in action, along with the updated C# project (zipped).

P.S.  How can I embed a .SWF version of the screencast in this post?  I know that'd be a much smaller file, just not sure how to do it.