Provides methods and fields to manage the input language. This class cannot be inherited.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Gets the culture of the current input language.
Gets or sets the input language for the current thread.
Gets the default input language for the system.
Gets the handle for the input language.
Gets a list of all installed input languages.
Gets the name of the current keyboard layout as it appears in the regional settings of the operating system on the computer.
Specifies whether two input languages are equal.(Overrides Object.Equals(Object).)
Returns the input language associated with the specified culture.
Returns the hash code for this input language.(Overrides Object.GetHashCode().)
Returns a string that represents the current object.(Inherited from Object.)
An input language is a culture/keyboard layout pair that determines how the physical keys on a keyboard map or plot to characters in a language. The input language is based on a Windows input locale identifier, such as that returned by the Platform SDK function, GetKeyboardLayout. The input locale identifier is also called a handle to a keyboard layout (HKL) value.
Use the static methods provided to find all installed mappings of the system and to change the input language for a thread or process. Call CurrentInputLanguage to get the current input language. Call DefaultInputLanguage for the default input language. Call InstalledInputLanguages to get all the installed languages in this system. After you have a list of all the installed languages, use CurrentInputLanguage to change the current input language to a different language.
The following code example gets a list of installed languages. The example requires that textBox1 has been instantiated and that textBox1.MultiLine has been set to true.
The next example sets the default input language as the current input language. The example requires that textBox1 has been instantiated and that textBox1.MultiLine has been set to true.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.