[英]How to set up UI culture for all the threads in framework 4.0?
I want to set UI culture for all the threads that are currently running. 我想为当前运行的所有线程设置UI文化。 here is my code 这是我的代码
ProcessThreadCollection currentThreads = Process.GetCurrentProcess().Threads;
foreach (ProcessThread thread in currentThreads)
{
//How do i set UI culture here.
}
otherwise is there any other way to do it. 否则还有其他方法可以做到这一点。 I am using 4.0. 我正在使用4.0。 I Know that in 4.5 we have the following 我知道在4.5中我们有以下内容
CultureInfo.DefaultThreadCurrentUICulture
How do i achieve it in earlier versions. 我如何在早期版本中实现它。 atleast in 4.0? 至少在4.0?
如果创建线程,则可以使用Thread.CurrentCulture来更改区域性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.