Different Languages on different textbos

G

Guest

Hi,

I have a windows form with few TextBoxs,
In textbox1 i want always to write in English with Capital Letters, and in
all other textBoxs i want to write in the default language of the OS.

I tried to turn on\off the CapsLock with Enter and LostFocus event, but the
when i'm turning off the capsLock by clicking another button, the LostFocus
event is called but the click event doesn't (only on the next click).

So, what will be the best way to do it?

Thanks,
Gidi.
 
G

Guest

Hi,
If you want to write content of particular textbox in capital letters then
in Design Mode you just need to set its CharacterCasing property to Upper.
 
G

Guest

Hi,

Thanks for the answers, but i'm sorry to tell you the UPPER works only if my
default language is English, but i'm talking about different situation, which
my default languge is hebrew and i've one textbox which i want to write only
in English Capital letters.

Thanks,
Gidi.
 
M

Morten Wennevik [C# MVP]

Hi,

Thanks for the answers, but i'm sorry to tell you the UPPER works only if my
default language is English, but i'm talking about different situation, which
my default languge is hebrew and i've one textbox which i want to write only
in English Capital letters.

Thanks,
Gidi.

You could handle the KeyPress event on that TextBox and cancel the user input, replacing it with the English character (asuming Hebrew characters can translate to English ones), or trap the KeyDown event to get the keyboard key pressed to determine which English character should be entered.
 

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