hi i have a code that writed in .Net 4.5
CultureInfo.DefaultThreadCurrentUICulture = value;
now i need to use this code in .net 4.0 but it seems This code is not available in .NET 4.0 What is the same code in .NET 4.0? I'm new, please help
hi i have a code that writed in .Net 4.5
CultureInfo.DefaultThreadCurrentUICulture = value;
now i need to use this code in .net 4.0 but it seems This code is not available in .NET 4.0 What is the same code in .NET 4.0? I'm new, please help
I usually set my application culture this way:
using System.Globalization;
using System.Threading;
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("fr-CA");
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("fr-CA");
If you are working on a multithreaded application, you need to set it at the beginning of each thread.