>Marc, if the grid is indeed in the container (rather than just visually sitting on top of it), then the full object hierarchy should indeed contain the name of the container. However, the last item in the hierarchy will be the name of the active control contained in the container (i.e., the grid).
True, but I would have expected that for the form (i.e. at Thisform level) the active control would be the container, which BTW has its own activecontrol property.
Now you have to 'name' (read identify) the controls within the container and differentiate them from controls on the form or in other containers in order for the form.keypress method to detect them as activecontrol. Less information hidde, less polymorphe... I would think. :)
Thanks,
Marc
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.