Works for me in the object itself or in a class. < shrug >
>Yes, it does. But for me, it only works if I put the code in the
class keypress event. If I put it in the object itself, like I was doing before, it doesn't work. Interesting.
>
>That's okay. I wanted a class for this eventually anyway...
>
>Thanks
>Eric
>
>>Eric,
>>This seems to work
>>Lparameters nKeyCode, nShiftAltCtrl
>>DO CASE
>> Case nKeyCode=97
>> nKeyCode=98
>> Case nKeyCode=100
>> nKeyCode=101
>>EndCase
>>DoDefault(nKeyCode, nShiftAltCtrl)
>>NoDefault
>>
>>HTH
>>cj