Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement