Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu bars disabled--redux
Message
De
25/11/2009 10:02:13
 
 
À
24/11/2009 09:42:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01435795
Message ID:
01436584
Vues:
59
>So, just tested a bunch of things. DOEVENTS in various places doesn't help. Neither does a wait of up to 5 seconds after exiting the modal form. I confirmed again that the form reference variable was null after the form closed, so I don't think this is a dangling reference.
>
>But, as I learned before, stepping through the code prevents the problem. I'm wondering if, rather than timing, the issue is having focus get set elsewhere before the other form opens. I just tried setting focus to something on the app's main form, and that didn't help. Wonder if I can set focus outside my app and then bring it back?

On a suggestion from the client, I modified the code in the button so that it doesn't hide the form before processing and that solved this. So apparently something about the combination of hiding the form, then introducing a wait state (or the calls to the COM object or something) caused the problem.

Thanks for the suggestions, folks.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform