That's odd.
Aha. I had some macros set.
I wonder why they are still active when the form is modal?
Regards
Geoff
>>It seems that with a modal form only CTRL+w is affected. KeyPress is eventually called but
>>
nKeyCode = 9 and nShiftKey = 0
>>which is not correct.
>>
>
>I get 23 and 2 as it supouse to be.
May all your weeds be wildflowers