using System;
namespace DetectKeyboardLanguage
{
static class Program
{
private static void Main()
{
// Gets the culture name.
Console.WriteLine(System.Windows.Forms.InputLanguage.CurrentInputLanguage.Culture.Name);
// Gets the name of the current keyboard layout as it appears in
// the regional settings of the operating system on the computer.
Console.WriteLine(System.Windows.Forms.InputLanguage.CurrentInputLanguage.LayoutName);
// Obtains the next character or function key pressed by the user.
Console.ReadKey();
}
}
}In this Tip/Trick you will learn how to detect keyboard language with C# language and gets the name of the current keyboard layout as it appears in the regional settings of the operating system on the computer
