Application.CurrentInputLanguage Proprietà

Definizione

Ottiene o imposta la lingua di input corrente per il thread corrente.

public:
 static property System::Windows::Forms::InputLanguage ^ CurrentInputLanguage { System::Windows::Forms::InputLanguage ^ get(); void set(System::Windows::Forms::InputLanguage ^ value); };
public static System.Windows.Forms.InputLanguage CurrentInputLanguage { get; set; }
static member CurrentInputLanguage : System.Windows.Forms.InputLanguage with get, set
Public Shared Property CurrentInputLanguage As InputLanguage

Valore della proprietà

Oggetto InputLanguage che rappresenta la lingua di input corrente per il thread corrente.

Esempio

L'esempio di codice seguente ottiene questa proprietà e ne visualizza il valore in una casella di testo. L'esempio richiede che textBox1 sia stato inserito in un modulo.

private:
   void PrintCurrentInputLanguage()
   {
      textBox1->Text = "The current input language is: {0}",
         Application::CurrentInputLanguage->Culture->EnglishName;
   }
private void PrintCurrentInputLanguage() {
    textBox1.Text = "The current input language is: " +
       Application.CurrentInputLanguage.Culture.EnglishName;
 }
Private Sub PrintCurrentInputLanguage()
   textBox1.Text = "The current input language is: " & _
      Application.CurrentInputLanguage.Culture.EnglishName
End Sub

Si applica a

Vedi anche