的app.config全球化 [英] app.config globalization

查看:178
本文介绍了的app.config全球化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

web.config中允许全球化标签: 该设置将设置全球化为整个ASP.NET应用程序。

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

请问在app.config中这个标签的工作标准表单应用程序吗? 如果是的话......在这里应将其放在哪里?

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


或..有另一种方式来设置全球化为整个窗体应用程序。包括dll的所有主题?

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

推荐答案

一起来看看以下主题:   如何:将文化和UI文化Windows窗体全球化

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

要设置文化到主应用程序使用下面的代码片段code:

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

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

这篇关于的app.config全球化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆