键盘布局自动安装一种语言 [英] keyboard layout automatically installating one language

查看:88
本文介绍了键盘布局自动安装一种语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从控制面板安装一种语言 - >地区和语言 - >键盘语言 - >加 - >阿拉伯语(语言)..当我点击我的winform应用程序中的按钮控件时,我需要安装这个东西。我怎么安装?

i need to install one language from control panel--> Region and Language-->keyboard language --> add--> Arabic(language).. i need to install this thing when i click on button control in my winform application. how can i install?

推荐答案





如下所示。

Hi,

try like below.
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("ar");
System.Threading.Thread.CurrentThread.CurrentCulture = ci;



ar指定,它的阿拉伯语。它是阿拉伯语的文化名称。



上面的代码将创建新文化,并将添加到您的主题中。在你的情况下将是合适的,文化是活跃的,直到线程存在。



更多关于 CultureInfo 在这里

MSDN-CultureInfo类 [ ^ ]

文化名称 [ ^ ]



希望它有所帮助。


"ar" specifies, its arabic. Its the culture name for arabic.

the above code will create the new culture and that will be added to your thread. in your case will be suitable, the culture is active till the thread exists.

more on CultureInfo is here
MSDN-CultureInfo Class[^]
Culture Names[^]

hope it helps.


这篇关于键盘布局自动安装一种语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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