*The ReleaseType property is set prior to the QueryUnload event being called. *Setting Description *0 Variable released. *1 Close menu command or close box. *2 Exit Visual FoxPro. IF This.ReleaseType = 1 && 1 means user clicked on the close button. RetVal = This.Hide() NODEFAULT ENDIF>Thanks a lot. I knew that(so why didn't I remember it). If I am using the form closable "X" to close the form, where does the form.hide() code go?