"NODEFAULT in the QueryUnload event procedure prevents the form from unloading".
>The following sample code conditionally
goes back to the form - perhaps to force the user to complete some input.
>
>
>* Method: Form.Deactive()
>if MessageBox("Deactivate?", 4) = 6
> DoDefault()
>else
> ThisForm.Show()
>endif
>
>
>Is it possible to avoid the form losing focus in the first place? I mean, just to avoid clumsy display.
>
>TIA, Hilmar.
--sb--