I need to switch to the US keyboard automatically everytime the process is launched.
I use three ‘Assign’ activities.
In the first I assign to a new variable culture = new CultureInfo(“US”)
In the next one I assign System.Threading.Thread.CurrentThread.CurrentCulture = culture
In the last one I assign InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(culture)
In the message box it shows that it’s changed if I launch my project with a non-US keyboard layout. It displays “US” in the message box. But in the system itself it doesn’t change. So if I start with a non-US keyboard it still remains non-US while the Message Box shows different.
What am I doing wrong?
P.S. Variants like use “shift + alt” or any other keyboards are forbidden here. No any Send Hotkeys or Type Into. I need to do it using programming commands strictly.
P.S.S. The example is attached SwitchLanguage.xaml (7.0 KB)