Unicode Controls & Classes for VB6 - Version 4

ctlUniTextCodeHighlight.IsInIME Function

You can use this property for knowing if the KeyPress, KeyDown and KeyUp events have been raised by the active IME window associated to your control.

Syntax
Public Function IsInIME () As Boolean
Parameters
Parameter Description
Remarks
By using this property in the KeyPress event you can avoid the IME text. See here.