Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Forms Unicode Interop
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 15-Jan-13 7:52am
Comments
Sergey Alexandrovich Kryukov at 15-Jan-13 15:50pm
   
Any particular reason to use VB6?!
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 400
1 Jochen Arndt 200
2 Richard MacCutchan 135
3 DamithSL 95
4 Maciej Los 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100