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