|
-
January 15th, 2009, 11:35 AM
#1
[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?
[Vb.NET 2008 (ex Express)]
-
January 15th, 2009, 11:40 AM
#2
Re: New thread change culture
 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.
[Vb.NET 2008 (ex Express)]
-
January 15th, 2009, 08:53 PM
#3
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" />
-
January 16th, 2009, 08:37 AM
#4
Re: [RESOLVED] New thread change culture
 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?
[Vb.NET 2008 (ex Express)]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|