我怎么看在C#/。NET的WinForm这个特殊的人物? [英] How do i see this special character in C#/.NET winform?
问题描述
有一个特殊的字符可以在这里看出http://www.fileformat.info/info/uni$c$c/char/1f4a9/index.htm
There is a special character which can be seen here http://www.fileformat.info/info/unicode/char/1f4a9/index.htm
我有正确的字体吧,我甚至可以复制/粘贴在Firefox。我可以看到在Firefox中的文字,而无需使用的图像。但是,当我将其粘贴到的WinForms我不知道。我看到两个箱子与?
每个里面。它的一个字母。奇怪的是,我可以复制文本出来,并将其粘贴到Firefox和正确看到它。 (注意:我确信复制/粘贴常规文本在Firefox,以确保我没有repasting我最初复制)。
I have the correct font for it, i can even copy/paste it in firefox. I can see the text in firefox without using an image. But when i paste it into winforms i do not. I see two boxes with ?
inside of each. Its one letter. Oddly enough i can copy the text out and paste it into firefox and see it correctly. (Note i made sure to copy/paste regular text in firefox to ensure i am not repasting what i originally copied).
我设置,如字体,以便 textBox3.Font =新的字体(使用symbolA,12);
使用symbolA有需要查看特殊字符的字体。其实之前,我下载了它,然后右键单击安装的TTF文件的Firefox didnt正确显示的字符。因为我已经重新启动我的电脑。
I'm setting the font like so textBox3.Font = new Font("symbola", 12);
symbola has the font required to view that special character. In fact before i downloaded it and right click install on the ttf file firefox didnt show the character correctly. I have restarted my computer since.
我如何获得WinForm的正确显示字符?
How do i get winform to display the character properly?
推荐答案
您可以尝试使用的RichTextBox
。我已经使用统一code。在常规文本框
间歇性故障,即使正确安装了所有字体。当你从code将其设定几乎总是工作,但有时有问题的互动性。无论如何,我从来不知道它,但的RichTextBox
的工作通常在这些情况下的原因。
You may try using a RichTextBox
. I have had intermittent trouble using Unicode on the regular TextBox
, even with all fonts installed correctly. It nearly always works when you set it from code, but there are sometimes problems with interactivity. At any rate, I never know the cause of it, but RichTextBox
has typically worked in these situations.
这篇关于我怎么看在C#/。NET的WinForm这个特殊的人物?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!