Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus on first textbox control on page
Message
From
21/09/2004 11:16:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00944565
Message ID:
00944570
Views:
26
>I have a pageframe that contains several pages. Each page has a container holding textboxes. I have set the tab order on these textboxes. I also have a dbi-tech treeview control that flips pages on pageframe. How do I setfocus on first textbox control in a container on pages? Do I have to iterate through all controls starting with pageframe or is there a simple way of doing this?
>
>thanks
>Nick

AFAIK, there is no shortcut. I think you must iterate, and search for the object that has the lowest .TabOrder. Once you find it, if it is a simple control, select it. If is a container type (Container, Page, etc.), repeat the above, to make sure that the first object in the container is selected.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform