>>>Let say, some custom form property holds object reference, e.g. form contains pageframe and each page activate event fires:
>>>Thisform.ActivePageObject=This && surely, it's just an example, it can be buttons, textboxes etc , even exteranl objects
>>>Now, if you will not issue This.ActivePageObject=.NULL. in Form.Destroy event, you cannot release the form and close button is grayed out.
>>
>>Thanks, Ed. That's what I thought you were saying. I just haven't run into this one and wanted to be sure.
>
>This behavior only surfaces when the user clicks on the close button and a reference is outstanding. The button will not gray itself.
It will also gray out if some code fires
RELEASE WINDOW "formname"
unsuccessfully trying to close the form
Edward Pikman
Independent Consultant