[...]
when the Input Language Is selected as English(United States) when I
press
the keys 1,2,3,4,5,6
I get in the textbox as 123456
when the input language Is selected as French (France) when I press the
keys
1,2,3,4,5,6
I get in the textbox as &é"'(-
What I need is that when I change the language from English(United
States)
to French (France) the text should also change from 12346 to &é"'(-
If I understand correctly, the text that should change is the text
displayed in the text box itself.
Earlier someone said me it is not possible until I record the keystrokes
that are being entered into the richtextbox..
That sounds about right. Not only would you need to record the
keystrokes, presumably you'd need some way to send those keystrokes
through the input language-dependent code and rebuild the text box text
from the logged keystrokes. Of course, not all keystrokes create a
character in the text box, so you also may need some way of accounting for
those (unless you literally just want to play back the user's entire input
sequence every time you need to rebuild the text box's text).
Of course, assuming this is really supposed to be a text editor, then you
still have the problem of what to do with saving or loading a text file.
It's one thing to maintain all this meta-data about the inputed text
during your program's execution. But it's not like you can save that
meta-data with the text file.
It seems to me that for a variety of reasons, you might find it's more
productive to somehow come up with a mapping for characters generated with
the input in one language to those generated for the same input in another
language. Unfortunately, I expect that may be fraught with pitfalls as
well, given that keyboard input and text characters don't really have a
one-to-one mapping (in spite of their close relevance to each other).
In any case, the KeysConverter class is, according to the documentation,
mainly used for translating the _names_ of the Keys instances, not the
generated text itself. There might be some overlap there, but I doubt
it's actually going to do what you want here.
Pete