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 can get this by calling the GetKeyboardLayout Windows API function.
Keyboard layout is by thread.
I am not aware if there is a built-in managed version of this function.