Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus after tabe change ?
Message
From
29/07/2000 20:26:56
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00398428
Message ID:
00398550
Views:
38
>>>>How to make focus to the first control of each page after tab change ?
>>>>
>>>>it retain the control to tab after tab change now ...
>>>
>>>Each Page has a Controls collection - in the Activate event of the Page, you could simply issue something like:
>>>
>>>=this.Controls(1).SetFocus()
>>>
>>>or spin through the collection and check for the first appropriate control that's enabled.
>>
>>Ed,
>>
>>Does whatever control that's in .Controls[1] have to be the first tab stop? Isn't it just the order the controls are defined in, not necessarily the tab-stop order? Just checking...
>
>I think it's the order the control is added to the Page; you might have to spin through the collection to find the first control by tab order.

OK, thanks. I guess most of the time, the order things are added would be first, but things do change...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform