Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command btn keypress event question
Message
De
09/02/2007 08:49:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01194019
Message ID:
01194025
Vues:
20
>I have a cmd btn that I only want enabled when the user clicks on it and want it disabled when said cmd btn has the focus so the user cannot hit ENTER and activate its click event. Can I move the focus to another control if the user DOES hit ENTER on it and not have it fire?

Sure, add to Button.Keypress event
If nKeycode=13
  Thisform.Othercontrol.Setfocus
  NODEFAULT
Endif
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform