closing pop-up form

P

Phil

Hi,

I have a main form with a command button that opens a pop-
up form. I would like the pop-up form to close if the
user clicks anywhere outside of the pop-up form. Can this
be done? I tried using the events "lost focus"
and "deactive" on the pop-up form, but nothing seems to
work. Any help?

Thanks,
Phil
 
Top