Click to See Complete Forum and Search --> : Msgboxes do but forms don't


diprima
February 15th, 2000, 08:27 PM
Is there a way to tell when a form is closed by the controlbox button?
You know like the msgbox returning a value?

Thanks in advance
ivan

Lothar Haensler
February 16th, 2000, 01:31 AM
you can trap the QueryUnload Event of the Form window.
The Eventhandler takes an UnloadMode argument that tells you how the user closed the form. You could store that value in a global variable or....