Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Focus
Message
From
30/07/2001 15:04:23
 
 
To
30/07/2001 14:58:54
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00537197
Message ID:
00537381
Views:
11
>>>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.

Interesting. Guess it's too late at that point.
Previous
Reply
Map
View

Click here to load this message in the networking platform