How to fix English in a specific text box in Arabic?

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.

+5
source share
4 answers

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);
    }
+3
source
  this.textBox1.KeyDown += new KeyEventHandler(textBox1_KeyDown); 

KeyEventHandler , WinForms, KeyDown, -

+1

WebForms, :

- ( jQuery):

$("#textBox").attr("lang", "en");
+1

, , - ... , -. Qaru post - ASP.NET.

+1

All Articles