Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

How to change input language programmatically

1 réponse
Avatar
ilaria.rizzo
I need to write a routine Csharp which is able to change the input
language of Windows XP .

For example, I'm using code like this:

System.Windows.Forms.InputLanguage.CurrentInputLanguage =
System.Windows.Forms.InputLanguage.FromCulture(new
CultureInfo("ru-RU"));

to set russian input language, but it only affects the thread the code
is executed from.
I instead want to change the input language of Windows at all, i.e. for
all running application and for all the application that will be
launched from a certain moment on.

Help appreciated.

Thank you very much.
Ilaria.

1 réponse

Avatar
Paul Bacelar
http://www.pinvoke.net/default.aspx/kernel32/SetLocaleInfo.html
(No checked)
--
Paul Bacelar
MVP VC++

wrote in message
news:
I need to write a routine Csharp which is able to change the input
language of Windows XP .

For example, I'm using code like this:

System.Windows.Forms.InputLanguage.CurrentInputLanguage > System.Windows.Forms.InputLanguage.FromCulture(new
CultureInfo("ru-RU"));

to set russian input language, but it only affects the thread the code
is executed from.
I instead want to change the input language of Windows at all, i.e. for
all running application and for all the application that will be
launched from a certain moment on.

Help appreciated.

Thank you very much.
Ilaria.