Do you see wait window in ActiveX KeyCode method ?
If yes, then ActiveX intercepts keystrokes regardless on KeyPreview property value.
>This was just some code for testing, never reaches the KeyPress event at all?
>
>>Should be
>>
>>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>>WAIT WINDOW nKeyCode TIMEOUT 1
>>>IF nKeyCode=61
>> NODEFAULT
>>> thisform.pageframe1.page1.gridsearch.clearsearch()
>>ELSE
>> DODEFAULT(nKeyCode, nShiftAltCtrl)
>>>ENDIF
>>
>>
If it's not broken, fix it until it is.
My Blog