app.config globalization
Asked Answered
A

1

14

web.config allow a globalization tag: This setting will set the globalization for the entire ASP.NET application.

Does this tag work in app.config in standard forms applications too? If yes... where shall it be placed?


Or.. is there another way to set the globalization for the entire forms application. Including dll's and all threads?

Azoth answered 12/8, 2009 at 11:20 Comment(1)
see #9104584Crevasse
R
4

take a look at the following topic: How to: Set the Culture and UI Culture for Windows Forms Globalization

To set the Culture to the Main Application use the following snippet code:

Dim newCulture As CultureInfo = new CultureInfo("fr-FR")
CurrentThread.CurrentCulture = newCulture
Ryder answered 12/8, 2009 at 11:28 Comment(2)
Thanks, But is there no way to set it for all threads in the application?Azoth
I don't think so, however if you are creating the threads in your application you can set the culture for everyone by yourself.Ryder

© 2022 - 2024 — McMap. All rights reserved.