Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control won't give up focus?
Message
De
14/09/2001 08:31:01
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00556385
Message ID:
00556393
Vues:
21
>I have a fairly simple Edit button, when clicked, I turn on edit mode and have THISFORM.Edit2.SetFocus at the bottom of the button Click() code. The Edit button won't give up focus and set focus to the Editbox named Edit2. I have to click on the Editbox or press the Tab key for the Edit button to give up focus?
>
>I don't know why this is happening? Any ideas are appreciated.

Steve,

Ok, I ran a test form and your code does work. The problem I believe has to be with what happens when the ThisForm.Refresh is called. Is it possible that the Editbox is disabled when the Setfocus call is made? This will keep an object from receiving the focus and if it has nowhere else to go, it will stay on the button.

Renoir
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform