RichTextBox cannot display Unicode Mathematical alphanumeric symbols

限于喜欢 提交于 2019-11-29 04:26:01

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:

  • Upgrade to .NET 4.7

OR

  • You can use the latest version of 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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!