Our application allows the user to change the Culture in which they work, and this culture may differ from the main OS culture. The only way I found for this is to set Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture for each thread.
The only problem is that we need to establish a culture for each thread, and we need to keep this in mind when we create a new thread. If you install the stream in another culture, then create a new stream, it will receive the OS culture, not the stream that created it.
I would like to find a better way to do this. I can only think of two things, but I do not know if they are possible.
- Configure the culture at the application level so that all threads default to that culture. Is it possible?
- Is there a thread creation event anywhere that I can subscribe to? That way, I can configure one handler to set the culture when creating threads.
Any ideas or help would be appreciated even if I need PInvoke prior to the Win32 API. Thanks in advance.
EDIT: I found this question that is similar but no answer found.
source share