Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>Hey Nick,
>>
>>>Are you sure there everything is OK with your form?
>>>In my case setting in Page.Activate()
>>>this.text1.SetFocus() always works.
>>
>>I'm looking, but I have the same thing and it wants to jump to the second object. Maybe in the base class...
>
>Maybe. Try putting a breakpoint on the LostFocus of that control.
>
>What is the control with TabOrder = 1? Is it, by any chance, disabled when the page is activated?
I think that was it, Nancy... I found code that I was using that first set the active page of the frame and then set the focus. I switched lines of code and now it works! The first control was disabled unless a form condition was met and since I was activating the page then setting focus I think control never made it to the original set focus. Strange though; I would have thought that explicitly stating the focus in the page activate would have been enough.
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