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

后端 未结 2 521
野趣味
野趣味 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:54

    One possible way is to run "charmap" and copypaste from there or copypaste it from elsewhere.

    0 讨论(0)
  • 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 = "日本";
    
    0 讨论(0)
提交回复
热议问题