Wayne,
If you put a thisform.release() in the click event of your WaitWind form, as well as a thisform.release in the lostfocus event of the same form, it should emulate the behaivour your are describing, because when you click in the form, is released by the click event, if you click outside the form, it will lose focus and be released because of the thisform.release() in the lostfocus event. No need to put code in the click or keypress event of any other object, just your form!
Probably i am missing something!
Hugo
>Thanks for the responses but what we need is a large "wait window".
>
>We want a form that looks like the messagebox() but has the same behavior as a "wait window". We want to display a message and return the focus to the calling form. Then as soon as we have a keypress or mouse click we want this "wait window" form to close.
>
>We would rather not put code in the click or keypress event of everything.
>
>Wayne
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges