[RESOLVED] New thread change culture
I had set, in program properties>application>assembly information, English-United States as neutral culture, and my program start with
Code:
My.Application.ChangeCulture("en-US")
but each time I start a new thread, it automatically changes his culture to Spanish-Argentina, and Cdbl("0.2") converts to 20 instead of 0.2
¿is there a way to avoid it?
Re: New thread change culture
Quote:
Originally Posted by
Marraco
I had set, in program properties>application>assembly information, English-United States as neutral culture, and my program start with
Code:
My.Application.ChangeCulture("en-US")
but each time I start a new thread, it automatically changes his culture to Spanish-Argentina, and Cdbl("0.2") converts to 20 instead of 0.2
¿is there a way to avoid it?
I had set this:
Code:
Dim ParalellProcess As New Thread(AddressOf LoopPrincipal)
With ParalellProcess
.IsBackground = True
.CurrentCulture = My.Application.Culture
.Start()
It looks like working, altought I don't know if is correct coding.
Re: [RESOLVED] New thread change culture
Here's a sample app.config setting...
Code:
<section name="SettingsAndResources.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=*****" allowExeDefinition="MachineToLocalUser" />
Re: [RESOLVED] New thread change culture
Quote:
Originally Posted by
dglienna
Here's a sample app.config setting...
Code:
<section name="SettingsAndResources.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=*****" allowExeDefinition="MachineToLocalUser" />
maybe app.config is a C# file. (I have not found that file).
I found dozens designer-generated-code lines looking as your posted. Too many to risk broke something by hand editing. It should be a control in some place to change it.
Do you think that new threads should not have the main application culture, or it is a bug?