Hi Colin:
This is doable :-)
Create a container class. Set BorderWidth to 0 and make it Transparent (the idea is to make it invisible). Put a Grid object in the container. Put whatever code you like (if at the Class level) in the Got/LostFocus of the *container*.
Now put an instance of the container in your form. Change or add Got/LostFocus code to this container instance if you like. Whenever the user tabs on or clicks the grid, it's underlying containers GotFocus will fire and the same applies to when they click off or leave the grid.
>How do I trap for when a grid gets and loses focus? TIA.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05