How to put unicode characters on a System.Windows.Forms.Button in C#?

后端 未结 2 543
野趣味
野趣味 2020-12-21 01:34

In Visual Studio 2008 in a C# WinForms project, there is a button on a form. In the properties view, the property \"Font\" is set to \"Arial Unicode MS\".

What do I

2条回答
  •  余生分开走
    2020-12-21 01:56

    You don't have to escape your unicode characters in strings as C# is inherently unicode. Just put your unicode characters as they are into the string. For example:

    button1.Text = "日本";
    

提交回复
热议问题