I am trying to develop an application in C# which required to detect user selected language (keyboard layout). However two languages are installed on my computer, the code a
You've gotta uncheck the setting let me set a different input method for each app window under Settings/Devices/Typing/Advanced Keyboard for the
string lang = InputLanguage.CurrentInputLanguage.Culture.Name;
to work. If you do so, it will return the current language layout that you use to type, even if it's different to your default keyboard language.