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?