>I need to know when the user has switched from a commandgroup to another part of the form but there aint no 'lostfocus' event for commandgroups.
>
>How else can we intercept the user - without writing code into all the other possible 'gotfocus' events which is hugely unwieldy...
>
>Harry
You can add a custom method to the command group container called
mLostFocus. Then in your command button class
LostFocus you can add the code:
if upper(This.Parent.BaseClass) = "COMMANDGROUP"
This.Parent.LostFocus
endif
As long as any command button you add to the group is of this class, the container LostFocus will be called each time a command button in the group loses focus.
Mark McCasland
Midlothian, TX USA