InputLanguage::CurrentInputLanguage Property
.NET Framework (current version)
Gets or sets the input language for the current thread.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property InputLanguage^ CurrentInputLanguage { static InputLanguage^ get(); static void set(InputLanguage^ value); }
Property Value
Type: System.Windows.Forms::InputLanguage^An InputLanguage that represents the input language for the current thread.
| Exception | Condition |
|---|---|
| ArgumentException | The input language is not recognized by the system. |
The following code example gets and displays the name of the current input language. This code assumes that textBox1 has been instantiated.
SecurityPermission
for access to unmanaged code. Associated enumeration: UnmanagedCode
.NET Framework
Available since 1.1
Available since 1.1
Show: