Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net app.config全球化_.net_Visual Studio_Globalization_Application Settings - Fatal编程技术网

.net app.config全球化

.net app.config全球化,.net,visual-studio,globalization,application-settings,.net,Visual Studio,Globalization,Application Settings,web.config允许全球化标记: 此设置将为整个ASP.NET应用程序设置全球化 在标准表单应用程序的app.config中,此标记也起作用吗? 如果是。。。它应该放在哪里 或者。。是否有其他方法为整个表单应用程序设置全球化。包括dll和所有线程?请查看以下主题: 要将区域性设置为主应用程序,请使用以下代码段: Dim newCulture As CultureInfo = new CultureInfo("fr-FR") CurrentThread.CurrentCulture = n

web.config允许全球化标记: 此设置将为整个ASP.NET应用程序设置全球化

在标准表单应用程序的app.config中,此标记也起作用吗? 如果是。。。它应该放在哪里



或者。。是否有其他方法为整个表单应用程序设置全球化。包括dll和所有线程?

请查看以下主题:

要将区域性设置为主应用程序,请使用以下代码段:

Dim newCulture As CultureInfo = new CultureInfo("fr-FR")
CurrentThread.CurrentCulture = newCulture

谢谢,但是没有办法为应用程序中的所有线程设置它吗?我不这样认为,但是如果您在应用程序中创建线程,您可以自己为每个人设置区域性。请参阅