System.Windows.Forms.TextBox 中未显示 Unicode 字符

10

本文介绍了System.Windows.Forms.TextBox 中未显示 Unicode 字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

当我从 VisualStudio 调试器将这些字符剪切并粘贴到此处时,它们显示正常,但在调试器和我尝试显示此文本的 TextBox 中,它只显示正方形.

These characters show fine when I cut-and-paste them here from the VisualStudio debugger, but both in the debugger, and in the TextBox where I am trying to display this text, it just shows squares.

海流影响,3-9 月向北流向主要风向,3-9 为其东南节,有时达2 节;10 月至2 日至次年4 月向南流向,当季受其影响为2 注意 附近有火山爆发的危险,航行时严加注意

说明 海流受季风影响,3-9 月份其流向主要向北,流速为2 节,有时达3 节;10 月至次年4 月份其流向南至东南方向,流速为2 节。 注意 附近有火山爆发的危险,航行时严加注意

我认为 TextBox 支持 Unicode 文本.知道如何让这个文本显示在我的应用程序中吗?

I thought that the TextBox supported Unicode text. Any idea how I can get this text to display in my application?

推荐答案

我从使用TextBox改为使用RichTextBox,现在字符显示在RichTextBox中.

I changed from using a TextBox to using a RichTextBox, and now the characters display in the RichTextBox.

这篇关于System.Windows.Forms.TextBox 中未显示 Unicode 字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

参数计数与调用不匹配?
Parameter count mismatch with Invoke?(参数计数与调用不匹配?)...
2023-11-11 C#/.NET开发问题
26

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

没有 EndInvoke 的 C# 异步调用?
C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)...
2023-11-11 C#/.NET开发问题
2

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14