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
For WPF (instead of Windows Forms) there's System.Windows.Input.InputLanguageManager which has InputLanguageManager.Current.AvailableInputLanguages and InputLanguageManager.Current.CurrentInputLanguage etc.