Wintertree Software Inc.

WSpell ActiveX Spell Checker for Visual Basic

Home Site index Contact us Catalog Shopping Cart Products Support Search

You are here: Home > Add a spell checker to your applications > Visual Basic > Using WSpell > How to check spelling of a text control interactively


How to check the spelling of a text control interactively

WSpell can check standard text and rich-text controls and TX Text Control, and interact with the user to dispose of any spelling errors detected via the built-in spelling dialog box.

  1. Set the text control's HideSelection property to False.

  2. Set WSpell's TextControlHWnd property to the window handle of the control you want to check.

  3. Set the ShowDialog property to True. This will cause the built-in spelling dialog box to appear.

  4. Set the ShowContext property to False.

  5. Call the Start method to begin checking. WSpell will check the spelling of each word in the text control. Misspelled words will be presented to the user via the built-in spelling dialog box. Misspelled words will be highlighted in the text control. Any corrections made by the user will cause the text control to be updated. WSpell will also fire events as misspelled words are detected and the text is changed (see below).

During checking, WSpell fires certain events to signal the detection of misspelled words and changes to the text. The following events may be fired during a spelling check:

These events are handled by the built-in spelling dialog box, so they don't need to be handled by your application. However, you can add event handlers in your application to respond to these events in some application-specific way. For example, when MisspelledWordEvent is fired, your application might increment a counter recording the number of misspelled words detected.


Home Site index Contact us Catalog Shopping Cart Products Support Search


Copyright © 2015 Wintertree Software Inc.