The docs for SendKeys.Send says that you should avoid it in applications
intended for international use since it can lead to unpredictable results.
Guess you just proved that :-(.
That being said, I have successfully used it with a bunch of different
keyboard layouts. However I only sent international characters, so I guess
it depends on what characters you're actually trying to send. Do you have to
send the actual keystrokes? If all you want to do is set the text in the
textbox there are other ways (see WM_SETTEXT)
/claes
<da******@hotmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
Hi,
I'm experiencing a problem when using the VB SendKeys method. I'm
sending characters to a textbox in another application. It works fine
when the Windows Input Languages on both apps are set to English, but
if they are set to say German, I'm getting the wrong characters in my
client textbox.
This is my SendKeys statement:
SendKeys.Send(MyString)
Thanks in advance,
davidm