>Actually what I am trying to do is when the user clicks on the X to close the
>screen to actually minimize it. I have a form that is an object.
>
>oForm = createobject("myform")
>oForm.show
>
>The form displays. What I want to do is allow the user to click the X but not close the form. I put the Return .F. in the query Unload method but it still closes the form and sets oForm to Null.
>
>Any Sugestions?
>
You need a NODEFAULT in your QueryUnload. The return of .F. is so whoever called the method directly can see if it didn't close, but has no real effect.
>Thanks
>
>Jeff
>
>
>>Jeff,
>>
>>Sorry about this. Could explain what do you meant by " opject reference is still set to null."? Does it meant you failed to refer to this object, or ...? What are you trying to do with this?
>>