Hi Dragan
>The quick and dirty way would be to use form.keypress (with .keypreview=.t.) and check whether the form.activecontrol's parent is the container. sys(1272) would make that check easier.
Thanks for your quick response. How about slow and cleaner way of doing it *g*. Frankly, I don't want to put the code in the form if I can, go to make the class (container) self dependent.