在 windowsForm Designer 中,我在表单上放置了一个标签。为其 text 属性写了一些土耳其语字符。text > "Giriş"
这意味着登录。
当应用程序启动时,ş
char 显示不正确。某种编码问题
Windows10 有 2 个语言包 > 英语(美国)和土耳其语。英语是默认语言和当前使用的语言。我不想以编程方式更改设计元素的文本。我想使用 FormDesigner。
这是我在 Windows 窗体设计器中看到的
这是我在跑步时看到的
在 windowsForm Designer 中,我在表单上放置了一个标签。为其 text 属性写了一些土耳其语字符。text > "Giriş"
这意味着登录。
当应用程序启动时,ş
char 显示不正确。某种编码问题
Windows10 有 2 个语言包 > 英语(美国)和土耳其语。英语是默认语言和当前使用的语言。我不想以编程方式更改设计元素的文本。我想使用 FormDesigner。
这是我在 Windows 窗体设计器中看到的
这是我在跑步时看到的
您必须按照Microsoft 的示例设置CurrentCulture
和:CurrentUICulture
// C#
// Put the using statements at the beginning of the code module
using System.Threading;
using System.Globalization;
// Put the following code before InitializeComponent()
// Sets the culture to French (France)
Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
// Sets the UI culture to French (France)
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR");
您可以在应用程序启动时设置一次。