Tutorial: Starting with Microsoft Visual Studio 2010 and TX Text Control

TX Spell .NET is the perfect addition for TX Text Control to add professional, high-performance and reliable spell checking to your applications. Furthermore, combined with TX Text Control version 20.0, TX Spell .NET enables a fast way to hyphenate documents.

This getting started tutorial is the shortcut to use TX Spell .NET for Windows Forms within Microsoft Visual Studio.

The source code for all steps is contained in the following directories:

1. Start Visual Studio .NET and create a new project. Select either Visual Basic or C# as a project type, and Windows Application as a template.

2. Find the TX Text Control 20.0 toolbox tab that was created automatically. All usable TX Text Control controls or components are listed in this tab.

3. Click on the TextControl icon and draw it on the form. Now, click on the Smart Tag in the upper right corner of the TextControl. To add the additional controls of TX Text Control, click on Add a Button Bar, Add a Status Bar, Add a Ruler and Add a Vertical Ruler. Finally, click on Arrange Controls Automatically. The controls are now connected and docked automatically.

Find the TX Spell 4.0 toolbox tab in Visual Studio. Drag and drop an instance of TXSpellChecker to your form. It is displayed in the component tray at the bottom of the form.

5. Select the inserted TextControl and find the SpellChecker property in the Properties window. Click on the drop-down box and select the inserted TXSpellChecker instance.

6. In the same window, find the IsSpellCheckingEnabled property of TextControl and set it to true.

7. To enable hyphenation, set the IsHyphenationEnabled property of TextControl to true.

Build and start the application to see the first results. The spell-as-you-type functionality and the English dictionary is enabled by default. Misspelled words are underlined automatically and can be corrected by using the shipped right-click context menu. Using this menu, you can open the integrated dialog box as well. In addition, on reaching the end of a line, the last word is hyphenated by using the corresponding English hyphenation list.