>But wait...
>It works in clicking "X" in the form but not when Ctrl+F4 is pressed...
>
>Thanks
Hi,
If, in addition to NODEFAULT, you return .F. from QueryUnload, the form cannot be closed by Ctrl+F4, clicking on the close button, or the ControlBox menu. Generally, the code looks something like:
IF NOT SomeLogicalCondition
NODEFAULT
RETURN .F.
ENDIF
George
Ubi caritas et amor, deus ibi est