For our application we need to support several languages.
I want to have the user defined decimal symbol for every language.
In my case it's DE-CH. I've change the Decimal separator to Comma:
On start up, I'm modifying the CurrentCulture and the CurrentUICulture to use the windows defined:
System.Globalization.CultureInfo useCult = System.Threading.Thread.CurrentThread.CurrentCulture;
System.Globalization.CultureInfo neplCult = new System.Globalization.CultureInfo("En-US");
neplCult.NumberFormat = useCult.NumberFormat;
System.Threading.Thread.CurrentThread.CurrentCulture = neplCult;
System.Threading.Thread.CurrentThread.CurrentUICulture = neplCult;
First I take the start up culture to have the correct number format. After that I create the english default culture, but I'm replacing the Number Format to have the Swiss Number Format.
If I'm checking now a text box, it still has a point as decimal separator. Why that? I checked the CurrentCulture and the CurrentUICulture. The Comma is defined and not a point.
If I do the same thing with the DateTimeFormat. The controls are showing the German Months?
Is this a Bug or I'm doing something wrong?