I cannot get WinForms RichTextBox
display some Unicode characters, particularly Mathematical alphanumeric symbols (but the problem is most probably not limited
It's a bug/decision by design in RichTextBox which has been fixed in .NET 4.7.
RichTextBox
is in fact a wrapper around RichEdit
. In .NET 4.7, the control is using RICHEDIT50W
while in previous versions it's using RichEdit20W
.
To solve the problem you can use either of these options:
OR
RichTextBox
that is RICHEDIT50W
, to do so you should inherit from standard RichTextBox
and override CreateParams
and load library Msftedit.dll
and set the ClassName
to RICHEDIT50W
. To see an implementation, take a look at this post.