Culture

  • Thread starter Thread starter John
  • Start date Start date
J

John

I am trying to set the culture for my application but the application still
continues to use the computer set region information. Any idea why it will
not change the culture?

I use the following code to set the culture in my windows form application :

Thread.CurrentThread.CurrentUICulture = new CultureInfo("nl-NL");
label1.Text=Thread.CurrentThread.CurrentCulture.ToString();

After setting to nl-NL the label displays "en-GB"
 
John,

In my opinion are you using two different properties therefore you get
different information.

However I prefer not to use it because you make the program very bound to
the Netherlands, or you should be sure that this is in future the only place
where your program or that part of the program will be used.

Better is in my opinion to change (if you are able to that) at the probably
En-us operating systems, where you want to use that in Holland the culture
settings the setting in the OS of that.

Although it is in my opinon forever strange that people in Holland using an
en-US OS are typing by instance times and dates in Dutch notation.

Maybe you can give a hint where you want to use it.

This is by the way the mainpart of the code to do it.

\\\set culture
Dim myCIintl As New System.Globalization.CultureInfo("nl-NL")
Application.CurrentCulture = myCIintl
'or
Thread.CurrentThread.CurrentCulture = New CultureInfo("nl-NL")
///

I hope this helps,

Cor
 
Back
Top