I need to fix English as an input language, even if the user selects an Arabic keyboard for a specific text field.
Is it possible?
As soon as I set the input words as English, it changes to all text fields and labels. But I want to fix this in English only for a specific text field.
Yes, it is possible using the following in a Windows application.
private void textBox2_Enter(object sender, EventArgs e) { System.Globalization.CultureInfo TypeOfLanguage = new System.Globalization.CultureInfo("en-us"); InputLanguage.CurrentInputLanguage = InputLanguage.FromCulture(TypeOfLanguage); }
this.textBox1.KeyDown += new KeyEventHandler(textBox1_KeyDown);
KeyEventHandler , WinForms, KeyDown, -
KeyEventHandler
KeyDown
WebForms, :
- ( jQuery):
$("#textBox").attr("lang", "en");
, , - ... , -. Qaru post - ASP.NET.