- C# IDE (Visual Studio 2008 used in this tutorial)
- .NET Framework 3.5
So, here we go.
1. Create a new C# WPF Application:
2. Add a TextBox to your form:
In the XAML tab, add the following code between TextBox tags:
SpellCheck.IsEnabled = "True"
You can add the same code in the standard C# code window. Just enter:
textBox1.SpellCheck.IsEnabled = True;
Now, launch the application. You get something like this:
If you enter incorrect words, these are underlined in red. If you right-click the word, you get some spelling suggestions to correct.
Congratulations! The project is done.
Number of downloads: 1598