473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Thread.CurrentThread.CurrentUICulture

Hi to all!,

I've downloaded .net Framework SDK 2.0 and I have VB.NET2005 Express
Edition, I would like to create multilanguage systems that changes
with radio button.
With Windows Localization Resource I changed the label of my
FrmMain.vb! and created automaticaly FrmMain.en.resx.
When i lunch the command in FrmMain_load()
....
Thread.CurrentThread.CurrentUICulture = New CultureInfo("en")
....
Doesn't happen anything!

That's wrong?

Thanks

Marco

Apr 1 '07 #1
2 3971
<sp********@gmail.comschrieb:
I've downloaded .net Framework SDK 2.0 and I have VB.NET2005 Express
Edition, I would like to create multilanguage systems that changes
with radio button.
With Windows Localization Resource I changed the label of my
FrmMain.vb! and created automaticaly FrmMain.en.resx.
When i lunch the command in FrmMain_load()
...
Thread.CurrentThread.CurrentUICulture = New CultureInfo("en")
...
Doesn't happen anything!
Set the culture in the constructor. In the form's 'Load' event it's too
late because captions have already been loaded and assigned to the controls.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Apr 1 '07 #2
You wrote that you want to create a multilanguage system but you was using
the culture settings.

Be aware that there is a big difference between language and culture (for
the computer).

Culture has not much to do with language. (In the EU with its more than 40
languages there are much less cultures). (Not talking about historical
because those are endless).

Cor
<sp********@gmail.comschreef in bericht
news:11*********************@q75g2000hsh.googlegro ups.com...
Hi to all!,

I've downloaded .net Framework SDK 2.0 and I have VB.NET2005 Express
Edition, I would like to create multilanguage systems that changes
with radio button.
With Windows Localization Resource I changed the label of my
FrmMain.vb! and created automaticaly FrmMain.en.resx.
When i lunch the command in FrmMain_load()
...
Thread.CurrentThread.CurrentUICulture = New CultureInfo("en")
...
Doesn't happen anything!

That's wrong?

Thanks

Marco

Apr 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Leonardo Hyppolito | last post by:
Hello, I am trying to write a multithread program that simulates producers and consumers. My program can have many producers and many consumers (each in a separate thread). It has a storage...
5
by: Claire | last post by:
Ive a static logging routine that's called by all my objects in the application. Ive several threads running in my application and Id like the log file to show the thread ID so I can trace a...
1
by: Manu | last post by:
I have created a new culture : Dim objCulture As New CultureInfo("he") //hebrew When I tried to assign it to the current thread. Thread.CurrentThread.CurrentCulture = objCulture...
0
by: gauthier | last post by:
Hi, I'm developing a web application available in multiple languages. When we switch language (via a drop down list), we switch the culture of the current thread: ...
13
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
1
by: scorpion53061 | last post by:
I have MS Word operating in a thread other than the main writing a report. Can I tell the main thread to wait until a particular point (a sub starts) in another thread before continuing on?
1
by: Fred B | last post by:
I am launching a new thread from my application's main process (using VB.net 2003), and I can't get the child to receive the parameter I'm attempting to send it in a named data slot. The code...
5
by: Tsair | last post by:
I set the thread culture in MAIN() as below in order to show the date in format DAY/MONTH/YEAR, but the datagridview alway show the date in M/d/yyyy. How to set the default Date format from...
2
by: tamirmalas | last post by:
Hi, iam trying to set a culture info different than the current culture info on the system, the code compiles fine, but nothing happens, and the system culture is the one used for the program. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.