Returns the input language for the current thread.
[Visual Basic] Public Shared Function GetCurrentInputLanguage() As InputLanguage [C#] public static InputLanguage GetCurrentInputLanguage(); [C++] public: static InputLanguage* GetCurrentInputLanguage(); [JScript] public static function GetCurrentInputLanguage() : InputLanguage;
An InputLanguage that represents the input language for the current thread.
The following example gets and displays the name of the current input language. This code assumes Button1 and TextBox1 have been instantiated.
[C#]
public void MyCurrentInputLanguage() { //Get the current input language and print it in a text box. InputLanguage myCurrentLanguage = InputLanguage.GetCurrentInputLanguage(); textBox1.Text = "Current input language is: " + myCurrentLanguage.GetCulture().EnglishName; }
InputLanguage Class | InputLanguage Members | System.WinForms Namespace | GetDefaultInputLanguage