>I am trying to trap the left mouse click on a cancel button during a conversion process. I am using the activex progress bar on a form that I use CREATEOBJECT to get the progress bar form to show during the conversion process. The ON KEY LEFTMOUSE will not run the function I am calling. I replaced LEFTMOUSE with F11 (to test) and it worked fine.
>
>Is there any work around to know when the left mouse button is press, so I can then act upon it?
Why can't you use the object's click event? Or are you referring to the close (x) button on the form. If it's the latter, put a NODEFAULT in QueryUnload to keep the form from closing.
hth,
George
Ubi caritas et amor, deus ibi est