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?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,604
Location
Norway
Programming Experience
10+
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.
 

d_a_r_k

Member
Joined
Oct 30, 2010
Messages
19
Programming Experience
Beginner
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.
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,604
Location
Norway
Programming Experience
10+
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.
 
Top Bottom