Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Screen.Activeform.Name NOT accurate
Message
De
05/06/2007 23:20:06
Walter Meester
HoogkarspelPays-Bas
 
 
À
05/06/2007 16:01:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01230724
Message ID:
01230817
Vues:
18
Tracy,

As Marcia outlines, this is not reliable when using activeX controls (even in VFP9). For the last couple of months we had significant trouble with activeX controls on modal forms causing VFP to be confused about the activeForm. The result was that a modeless form behind the modal form became active and the application locked up. We finally has a solution that involved using WONTOP() and some bindevents() and avoided the problem.

Walter,



>Over the years we have consistently used _Screen.ActiveForm.Name to determine the current active form. This has worked until recently. Recently, even though another form will actually be ontop and appear to have focus, _Screen.ActiveForm.Name returns the main form. I can only think that a timer may be running which could shift focus back to the mainform somehow. Is there ever a case when _Screen.ActiveForm.Name may be actually WRONG?
>
>Tia,
>
>Tracy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform