ComponentOne Spell for .NET: C1Spell Tutorials > Using Three Modes of Spell Checking

Using Three Modes of Spell Checking

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

      Data-Entry Screens (As-you-type)

In this mode, the C1Spell component 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.

      Long Documents

In this mode, the C1Spell component is invoked when the document is ready for checking. The demo uses the CheckControl method and from then on the whole process is automatic. The text is retrieved from the control, a spelling dialog box is displayed whenever a bad word is found, and the changes made by the user through the dialog box are applied to the control.

      Plain or Arbitrary Text (no controls)

In this mode, the C1Spell component 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.


Step 1: Create the Main Form

Step 2: Initialize the Form

Step 3: Provide As-You-Type Spell Checking (Top Panel)

Step 4: Provide Long Document Spell Checking (Middle Panel)

Step 5: Provide Spell Checking for Arbitrary Strings (Bottom Panel)


Send comments about this topic to ComponentOne.
Copyright © 1987-2008 ComponentOne LLC. All rights reserved.