>Marc,
>
>Did you try GotFocus()? You could also use a voyeur timer object that tracked last control.
>
>>My problem is that when the user presses the hotkey, the when eventmethod() is not executed, so the click() method does not know "who called".
>>
>>Anybody found a way to encapsulate this functionality in the command button allone, or are we to use the form to manage this?
Hi David,
I did try the gotfocus() but then it seems that the _screen.activecontrol is not defined.
But then, I think that one should use the form and that each control that gets focus should register itself somehow.
Thank you.
Marc
If things have the tendency to go your way, do not worry. It won't last. Jules Renard.