>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)