Step 1: Create the Main Form
To create the main form, complete the following steps:
1. Start a new .NET project.
2. Add the C1Spell component to the Toolbox, and add controls to create the main form. See the tables below, which list the controls to add to each section.
Note that the form is divided into three sections, each consisting of a frame control with its own C1Spell component and other subordinate controls.
When completed, here is how the final form will appear:
Top Panel
The top panel demonstrates as-you-type spell checking (data entry). It has the following controls:
Name |
Type |
Function |
C1Spell1 |
C1Spell |
Provides spell checking for this panel. |
TextBox1 |
TextBox |
This is where the user will type the text to be spell checked. |
TextBox2 |
TextBox |
This is where the user will type text to be spell checked. |
TextBox3 |
TextBox |
This is where the user will type text to be spell checked. |
CheckBox1 |
CheckBox |
Toggles auto-correct mode on and off. |
PictureBox1 |
PictureBox |
Used to show a red signal when the user makes a typing error. |
Middle Panel
The middle panel demonstrates long document spell checking. It has the following controls:
Name |
Type |
Function |
C1Spell2 |
C1Spell |
Provides spell checking for this panel. |
TextBox4 |
TextBox |
This is where the user will type the text to be spell checked. This could also be a RichTextBox control. To be able to see misspelled words better, set the HideSelection property to False. Set the Multiline property to True so the user can enter more than one line of text. |
Button1 |
Button |
Starts spell checking the text in TextBox2. |
Bottom Panel
The bottom panel demonstrates spell checking plain text. It has the following controls:
Name |
Type |
Function |
C1Spell3 |
C1Spell |
Provides spell checking for this panel. |
TextBox5 |
TextBox |
Used for changing ListBox entries. |
ListBox1 |
ListBox |
Contains strings that will be spell checked. |
Button2 |
Button |
Spell checks every ListBox item. |
Also use the ContextMenuStrip control to create a single menu with an array of six sub-items.
|