if ( this.QueryUnload() ) this.Release() endif>>How would you go about simulating the user clicking on the close button or double-clicking on the control box of a form. The thing I need is for the queryunload event to fire. The VFP docs state that using the Release method won't fire this event. I tried the MOUSE command and the KEYBOARD command to no avail. Any help is greatly appreciated.