Rich text in a Windows Forms application

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

  • spellchecking
  • limited text formatting: bold, italics, bulleted lists

Ideally, formatted text could be obtained in a simple text-based way to create reports using tools that do not support formatting, but can also be displayed as HTML for tools that support HTML tags when rendering text.

It seems to me that WPF RichTextBox will provide this functionality. What is the best way to enable it? Could you suggest other alternatives?

+4
source share
3 answers

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

Ready to go richtextbox custom control with spell checker. Spellchecker application that can be easily integrated

Also here is an article about adding WPF RichTextBox to your application, as well as checking how spell checking works. (Requires .NET 3.0+)

+3
source

I have not yet checked if it will work in a RichTextBox, but it should ... try the following attached property

<TextBox SpellCheck.IsEnabled="True" /> 

Read more about it here.

+2
source

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

+1
source

Source: https://habr.com/ru/post/1277474/


All Articles