ComponentOne Spell 8.0 for ActiveX
VSSpell Tutorial

This section will lead you through the creation of a Visual Basic project that uses the VSSpell control. The project shows how to use the VSSpell control to provide three types of spell checking:

  1. Data-Entry Screens (As-you-type): in this mode, the VSSpell control is linked to individual textboxes and monitors them as the user types. When errors are detected, the offending word is underlined and a beep sounds. The demo also provides an AutoCorrect option that will display a menu with suggestions when the user makes a typing error.

  2. Long Documents: in this mode, the VSSpell control is invoked when the document is ready for checking. The demo uses the CheckWindow method and from then on the whole process is automatic. The text is retrieved from the control, a bad-word dialog is displayed whenever a bad word is found, and the changes made by the user through the dialog are applied to the control.

  3. Plain or Arbitrary Text (no controls): in this mode, the VSSpell control is used to check strings that come from arbitrary sources. The demo retrieves the strings from a ListBox control, but in practice the text comes from a database, text file, or any other source.

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback