Question change locale using registry

d_a_r_k

Member
Joined
Oct 30, 2010
Messages
19
Programming Experience
Beginner
Is it possible to check locale format on form_load and change it to en-us via registry if any other is preset?
 
You can get/set culture for application (Application.CurrentCulture) or thread (Thread.CurrentThread.CurrentCulture). Culture can also be set for single code calls if necessary, most culture dependent methods has parameters where you can specify culture information. System.Globalization Namespace ()
These options should be preferable to changing the operating system settings.
 
The thing is that I use a complicated way of calculating the progress of an installer. But it errors in some cases, if the decimal sign is nonstandard. So I need a workaround.
 
Sounds as you should take a closer look at your code. Perhaps you can set the thread culture in an application to debug your problem calls under various cultures.
 
Back
Top