title: How to change input-language in a windows forms application for a specific control?
body: <p>I want when the focus enters in a <code>TextBox</code>, change the language to an specific language (for example persian) and when the focus leaves <code>TextBox</code>, change the language to original language which was set before.</p>
  
  <p>How to change input-language in a windows forms application when a specific control is focused? </p>
  
  <p>Here is what I tried, but I don't want the user press any key, I want to change the language automatically.</p>
  
  <pre><code>private void textBox1_KeyDown(object sender, KeyEventArgs e)
  {
      if(e.Shift &amp;&amp; e.Alt)
      {
          MessageBox.Show("***language of keybord changed***");
      }
  }
  </code></pre>