Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hello,
I have an interop user controls projects using Interop Forms Toolkit 2.1. All wen well, until we started typing unicode in the text box interop control. If we set our language to Chinese, and type, we get Korean. same for other language. We are using Arial Unicode font, and works in vb.net interop project, but not vb6. The strange thing is, if I put a breakpoint in vb6 on the Keypress event, and step through it using F8, all works well and displays the proper unicode characters. I have no codes in these events. we spent a month building this project thinking it will work, untill we got this suprise. Works well if we copy and paste into the text box.

Any help is appreciated.

Georges
Posted
Comments
Sergey Alexandrovich Kryukov 15-Jan-13 15:50pm    
Any particular reason to use VB6?!
—SA

1 solution

The strange thing is, if I put a breakpoint in vb6 on the Keypress event, and step through it using F8, all works well and displays the proper unicode characters.
In my experience, generally such thing happens when there is a race between any two calls. Generally, a delay/sleep of few millisecond to a second for the call that can wait resolves it. This might or might not resolve but worth a try. Put a dummy loop (or thread sleep) in your key press event and see if that delay helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900