>>>>I would like to know how to prevent my user from closing the project using the "Close (X)" at the top rightmost side of VFP screen. I am wondering if this can be disabled.
>>>>
>>>>Thanks a lot,
>>>>
>>>>Nerissa
>>>
>>>Intercept the QueryUnload() Event. NODEFAULT will avoid the default behaviour, in this case, closing the form.
>>
>>Not if it's the main VFP window. That only works for user defined forms.
>
>Fred,
>
>Is BINDEVENT() in VFP 8.0 an option here? I haven't played with it yet. The _SCREEN (but not _VFP) has a QueryUnload() event and you can bind events to it.
I haven't tried anything with that (yet). I had tried something with my old technique of creating an object that ties into the _SCREEN events, but IIRC, I don't think the QueryUnload one worked, along with the Activate and Deactivate events (worked internal to VFP and it's forms, but not between VFP and other Windows apps). Resize, KeyPress and the like all seemed to work fine.