Culture thingy

  • Thread starter Thread starter EricW
  • Start date Start date
E

EricW

Hi,

If I use this code:

Dim ci As New System.Globalization.CultureInfo("en-US", False)
Dim newCi As System.Globalization.CultureInfo = CType(ci.Clone(),
System.Globalization.CultureInfo)
Thread.CurrentThread.CurrentCulture = newCi

somewhere in my application, does it keep the culture as long as it runs, or
just within the function it's in?

In the first case I should put it probably in the forms load code?

rg,
Eric
 
EricW said:
If I use this code:

Dim ci As New System.Globalization.CultureInfo("en-US", False)
Dim newCi As System.Globalization.CultureInfo = CType(ci.Clone(),
System.Globalization.CultureInfo)
Thread.CurrentThread.CurrentCulture = newCi

somewhere in my application, does it keep the culture as long as it runs,
or just within the function it's in?

As long as the thread executing the statements above runs (or as long as you
do not switch the thread's culture to another culture).
 
Back
Top