I almost have the same problem as the guy in this thread:
So that my
double x = 234.4; string y = x.ToString();
y == "234,4";
Even worse …
Double.Parse("234.4") throws an exception.
I have written alot of code before I was asked to use period instead of comma, so I would prefer to have some way to change my CultureInfo at a global level.
Is there some setting in the projects that I can do?
Application.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US"); Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
They kind of work. They work for most part of the application, but all controls that reside in the tabs of my TabControl still wants to use my computers Localized CultureInfo.
Any Ideas on how to solve this?