Posts

Showing posts with the label culture

How set a culture for entire winform application

Image
Clash Royale CLAN TAG #URR8PPP How set a culture for entire winform application I want to set a culture for entire winform application. How can i do that? I changed my Program.cs file like this : Program.cs using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace Divar { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { var culture = new CultureInfo("en-US"); CultureInfo.DefaultThreadCurrentCulture = culture; CultureInfo.DefaultThreadCurrentUICulture = culture; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new RadForm1()); } } } Did i do it right? This has limited success, so at the ...