I am building a culture specific .net windows application and recently i faced a problem with the number shape which is changing according to the OS culture. I want to just use the English shape for all cultures especially the Arabic one.
regards,
I am building a culture specific .net windows application and recently i faced a problem with the number shape which is changing according to the OS culture. I want to just use the English shape for all cultures especially the Arabic one.
regards,
您可以使用 System.Globalization CultureInfo 类,然后强制您的程序使用美国英语文化:
Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
您可以在此 MSDN 页面上了解更多信息。