Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus not to the next object
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Setting focus not to the next object
Divers
Thread ID:
00147300
Message ID:
00147300
Vues:
62
I need to set focus to several objects depending on the content of the current textbox if the TAB or ENTER key is pressed, so I'm using the MyForm.MyCurrentTextBox.KeyPress method to check if the nKeyCode is 13 or 9, if theis is true I set focus to the desired object with MyForm.MyDesiredObject.setfocus(), the problem is that the ENTER or TAB is kept in the buffer and is executed when MyDesiredObject already has the focus causing this object to loose the focus and the next object gets it.
Any tips to share?
Jorge Flores
From the Amigo Country
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform