tags:

views:

828

answers:

3

I would like to update a Windows Forms application to provide the following features:

  • spell checking
  • limited formatting of text: bold, italics, bulleted lists

Ideally the formatted text could be accessed in a plain text way for reporting through tools that don't support the formatting, but could also be rendered as HTML for tools that support HTML tags when rendering text.

It seems to me that the WPF RichTextBox would provide this functionality. What is the best way to incorporate it? Would you suggest other alternatives?

+1  A: 

Windows Forms has a RichTextBox also. If you're in a Windows Forms application, it will be easier to incorporate that than incorporate the WPF control.

Jeff Yates
+3  A: 

You can add / create a drop-in spell checker for the Window Forms RichTextBox.

A ready to go richtextbox custom control with spell checking. An app for checking spelling that could be easily integrated

Also here is a article on adding a WPF RichTextBox to your application, as well as getting spell checking working. (Requires .NET 3.0+)

Cory
+2  A: 

I haven't check yet if it will work in a RichTextBox but it should... try the following attached property

<TextBox SpellCheck.IsEnabled="True" />

Read more about this here

rudigrobler