Hi Robin If you supply and ON SHUTDOWN you will be able to close in the VFP Window
in the begining of your main prg do the following
ON SHUTDOWN MySHUTDOWN()
at the end
PROCEDURE MySHUTDOWN
ON SHUTDOWN
CLEAR EVENTS
ENDPROC
>That sentence didn't make sense (LOL). users want to close Foxpro Window use the cross, not by pressing the close buttons I have provided on my screens.
>
>I'm getting cannot close Foxpro
>
>Many thanks
>RC
>Bespoke Software Systems
Alexandre Palma
Senior Application Architect