ComponentOne Spell for .NET: C1Thesaurus Quick Start

C1Thesaurus Quick Start

This section will lead you through the creation of a Visual Studio project that uses the C1Thesaurus component. To create a basic thesaurus-checking form, complete the following steps:

1.   Begin by adding the C1Thesaurus component to the Toolbox.

2.   From the Toolbox, double-click the C1Thesaurus component to add it to the form. 

3.   From the Toolbox, double-click the textbox control and command button to add each control to the form

4.   Arrange the control on the form and set the following properties:

      Button1.Text property to "Thesaurus".

      TextBox1.Text property to "".

Your form should look like the following:

 

5.   Then implement the following code in the body of the Button1_Click event handler:

      Visual Basic

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    TextBox1.SelectedText = Me.C1Thesaurus1.CheckWord(TextBox1.SelectedText)

  End Sub

      C#

private void button1_Click( object sender,  EventArgs e)

{

    textBox1.SelectedText = this.c1Thesaurus1.CheckWord(textBox1.SelectedText);

}

Now the sample application is ready. Run it, type any text in the box, highlight the text, click the button and observe its functionality.


Main Thesaurus File

Setting Thesaurus for .NET to Check a Selected Word

Automatic Dialog Box

Additional Thesaurus for .NET Features


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