Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Forms & Form designer
>>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only