Culture thingy

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • EricW

    Culture thingy

    Hi,

    If I use this code:

    Dim ci As New System.Globaliz ation.CultureIn fo("en-US", False)
    Dim newCi As System.Globaliz ation.CultureIn fo = CType(ci.Clone( ),
    System.Globaliz ation.CultureIn fo)
    Thread.CurrentT hread.CurrentCu lture = 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



  • Herfried K. Wagner [MVP]

    #2
    Re: Culture thingy

    "EricW" <iemand@home.co mschrieb:
    If I use this code:
    >
    Dim ci As New System.Globaliz ation.CultureIn fo("en-US", False)
    Dim newCi As System.Globaliz ation.CultureIn fo = CType(ci.Clone( ),
    System.Globaliz ation.CultureIn fo)
    Thread.CurrentT hread.CurrentCu lture = 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).

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

    Comment

    Working...