Greg (and Naomi),
Thanks. I got the error to go away once I realized it was related to just the name of the form/control being included in the WAIT WINDOW box. However, I now also understand that this class tracks mouse movement anywhere on the screen, even if another application has focus. Is there a way to only have the mouse movement be seen by the timer only if they are over the VPM application when it has focus?
TIA,
Robert
>See Naomi response.
>Greg,
>
>I downloaded your class and it seems to be exactly what I am looking for (Thanks!). However, I am sometimes getting the following error:
>
>"Member ACTIVECONTROL does not evaluate to an object" The debugger opens at the following line of code:
>
>
>lcPos = TRANSFORM(lnCursorX)+","+TRANSFORM(lnCursorY) ;
> +","+TRANSFORM(MROW("",3))+","+TRANSFORM(MCOL("",3));
> +","+transform(_vfp.ActiveForm.Name) ;
> +","+TRANSFORM(_vfp.ActiveForm.ActiveControl.Name)
>
>This error only seems to occur only when I return to the VFP9 after working in another application window for a while. If the VFP program remains the active application, I don't seem to see the error. Have you got any idea how I can eliminate this error?
>
>TIA,
>Robert
>
>
>>>I need to automatically close forms if they have been open for X minutes without any user activity.
>>>
>>>Does anyone know if someone has created a Class or program that will handle this.
>>>
>>>Thanks,
>>>
>>>Robert
>
>>Here is a little diddy that I through together a while ago. "Auto-close a form after N second of inactivity" download #
28400.