درود بر تمامی برنامه نویسان ایران ! امروز ، کد تشخیص زبان کیبرد در سی شارپ C#.NET رو براتون قرار میدهم.انشاالله که این آموزش به دردتون بخوره و مورد استفاده قرارش بدین.
این هم کد برنامه:
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.
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.