如何检测语言的变化,而运行? (C#) [英] How To Detect Language Changes While Runtime ? (C#)

查看:118
本文介绍了如何检测语言的变化,而运行? (C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想,当用户改变他的键盘上的语言来检测。
为例,我想,如果用户使用的是英语,然后更改语言为法语就知道了。
我想检测从所有活动线程这种变化。我的意思是我想知道什么时候这种变化发生在操作系统,而不是在某些特定的线程..
我使用C#语言。(控制台应用程序)

I want to detect when the user is changing his language on the keyboard. For example, I want to know if the user is using English, and then changing the language to French. I want to detect this change from all the active threads. I mean that I want to know when that change happens in the OS, And not in some specific thread.. I'm using C# language.(Console Application)

谁能帮我弄明白?我会很乐意帮忙..
谢谢。

Can Anyone help me to figure it out? I will be glad to some help.. Thank You.

推荐答案

如果您开发使用的WinForms使用的 InputLanguageChanging 事件

If you develop using WinForms use InputLanguageChanging event

这篇关于如何检测语言的变化,而运行? (C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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