Get latest CurrentCulture and CurrentUICulture

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I could get the correct System.Globalization.CultureInfo.CurrentCulture and
System.Globalization.CultureInfo.CurrentUICulture when the my WPF application
first started. While my application was running, I went to Control Panel -
Regionals and Language Options to change the Format from English (United
States) to Thai (ThaiLand), clicking a button in my application to get the
latest System.Globalization.CultureCulture and
System.Globalization.CurrentUICulture failed as it didn't returned the latest
culture info that I had just set. Is there any other way to get the latest
culture info without restarting my application?

Thanks,
Jen
 
System.Globalization.CultureCulture and
System.Globalization.CurrentUICulture failed as it didn't returned the
latest
culture info that I had just set. Is there any other way to get the latest
culture info without restarting my application?

CurrentUICulture should not change if you change formatting settings.
It only changes if the language of the Windows UI changes. That is only
possible if you have MUI installed, and you have to logout and login,
(which means the application is restarted).

Not sure about CultureCulture though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top