Hi Steve.
I believe you can check your form property in the QueryUnload method of the form.
If you do not want the form to close, use NODEFAULT.
IF NOT THISFORM.OkToClose
NODEFAULT
ENDIF
Michael M. Emmons
>I have a set of forms which are MDI enabled so that they can be maximized within the FoxPro screen. I cannot disable the close and minimize and maximize buttons without it making my form into a regular window and killing the maximized window. I want the user to have to click a button to close the forms. I don't want them to be able to close each form seperately. I need to know how I can check a property when the user closes a form by clicking the X and not close the form if my property is set to whatever. Does anyone have any suggestions?