That's a known problem with top-level forms on return from other forms....or at least it was a year or so ago when I ran into it but I don't remember the particulars. Look into the MS KB for info on this problem.
>I cannot get the focus back to X (Windows Upper right hand corner X is grayed out) when I return to my main form. Everything will work but cannot X exit VFP using the X. If I click on a button that displays an error messagebox on the form with Ok and then click OK the X is active again.
>
>What command do I need to use when returning from a form. I use THISFORM.RELEASE to return to the main form. (But the X is grayed)
>
>Thanks in advance!
>
>Roland...
>===============================================================================
------------------------------------------------
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