>We've run into this problem as well, and found a simple workaround that seems to work. It involves setting the form's Visible property to .f. at the beginning of the form's Destroy event (before running the framework's default code). For some reason, this seems to keep the form controls from trying to access their control sources (after their source data has been destroyed).
>
>Hope this helps......Eddie
Eddie,
I checked the framework, and the first thing that a cBaseForm.Destroy() does is setting the visible property of the form to .F. In other words your suggestion is already implemented and should work in most of the cases, but not here.
So for now on, I'll leave the SetFocusToFirst() call in UiEnabler.UiEnable() commented out. I've tried many approaches last night and found nothing of great interest that I could share...
José