Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
I'm struggling a bit trying to display Chinese characters in my VB.Net app.

I'm using TextBoxes and DataGrids. I'm pasting Chinese glyphs over from Excel into the TextBox controls. All the Chinese glyphs show properly in Excel. When pasted into the TextBoxes, most of the Chinese glyphs show properly, but some do not, they show as placeholder boxes. This happens even if the TextBox is set to the same font as excel.

I Googling this, I read that Arial Unicode MS has some of the best support for Chinese glyphs. Why can't I select this font for my TextBox controls at design-time, even though it's installed on my system?

Am I on the right track, that this is simply a font issue with the controls?

Thanks,
Kirk
Posted

1 solution

Yes, setting up a proper font, in particular, Arial Unicode MS, should solve the problem. I have no idea why you failed to do that, as you did not explain how you tried. This is really simple thing.

To check up what character repertoire is supported by what form, use the application which is bundled with all versions of Visual Studio: "Character Map" (charmap.exe).

Also, instead of hard-coding UI for just Chinese, consider using globalization and localization instead:
http://msdn.microsoft.com/en-us/library/aa292205%28v=vs.71%29.aspx[^],
http://msdn.microsoft.com/en-us/library/9xdxwwkc%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900