Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Auto Close a form?
Message
De
25/01/2009 06:28:14
 
 
À
24/01/2009 22:29:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01376662
Message ID:
01376825
Vues:
30
Thanks for the feedback. When time permits I will look into it. As for the VPM part, I don't have a version of VPM to test with. But should be able to find a workaround.

>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.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform