Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Focus issue
Message
De
05/03/2005 09:55:57
 
 
À
04/03/2005 15:48:46
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00992881
Message ID:
00993008
Vues:
15
Hi Steven,

the way to achieve this is to have the Valid method set a flag, then do your Setfocus() (or call the new form) in the LostFocus() of the control based on the value of the flag.

Frank

>I have a valid event in a text box on my form which if a certain condition occurs I have the code click a button to release the form and open another. The second form has INIT code to set focus to a particular text box. I keep getting an error that set focus can not be called from a valid event. How is this possible between two different forms?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform