>>I've got a closeable form which works fine until I make a call to GETDIR(). When the user selects a directory, and is returned to the form, all is well except for the fact that the close button in the top right-hand corner is now grayed-out. Anyone have any experience with this? Thanks for your help.
>
>Hi Richard,
>
>I tried this in VFP 5.0 and couldn't replicate the problem either with a modal or modeless form. The only way I could duplicate this behavior was by setting the .Closable property to .F.
>
>Try setting a breakpoint on the _SCREEN.ActiveForm.Closable property.
>
>hth,
There is one thing which can gray out 'close' button: it's some form property pointing to existing object. All these properties should be set to NULL in Form.Destroy event.
Edward Pikman
Independent Consultant