TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Detect Keyboard Language
Omid Nasri
May 04
2016
Code
5.1
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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();
}
}
}
C#
Code Snippets