How to change default language of a TextBox?

G

Guest

Hi All,

I have a TextBox in a form that has the property RightToLeft is set to Yes.

The TextBox is also Right to Left by default.

I need to set the default language of the TextBox to arabic.

Thank you.
Bishoy
 
S

Stoitcho Goutsev \(100\)

Bishoy,

AFAIK you cannot change the language only for a particular text box. The
input language is defined on the level of the UI thread and it is controlled
by the Application.CurrentInputLanguage property.

What you can do is to track the text box focus and when the control gets the
focus change the Application.CurrentInputLanguage to Arabic.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top