[Mono-winforms-list] Problem displaying CJK characters in WinForms controls

mhartmann mhartmann at vr-web.de
Tue Dec 1 03:46:35 EST 2009


Hi,

I'm having a problem when I try to display CJK characters in WinForms
controls such like a TreeView or a simple Label.

When I use the following code to create a simple form with a label within,
the title of the form is shown correctly while the text of the label is
shown as "boxes".



using System;
using System.Windows.Forms;

class MainClass
{
	public static void Main(string[] args)
	{
		string text ="\u30C0"; 
		Form form = new Form();
		form.Text = text;
		Label label = new Label();
		label.Text = text;
		form.Controls.Add(label);
		Application.Run(form);
	}
}



Is there something I missed to install or did I forget to set any
properties?

Greetings from Germany,
Martin
-- 
View this message in context: http://old.nabble.com/Problem-displaying-CJK-characters-in-WinForms-controls-tp26588086p26588086.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.



More information about the Mono-winforms-list mailing list