>I would set focus on the button before collecting data in the cursor. It must work.
I'll try one more time. In the meantime I looked at
How to pass cursor between two VFP datasessions (without using XML) FAQ #29297 and it's a bit too complex. Perhaps cursortoxml would be easier in my case.
UPDATE. Yes, moving the setfocus at the top of the method seems to work. Now I'll try to hide the button again.
If it's not broken, fix it until it is.
My Blog