Try putting the following code in your activate event.
for i = 1 to This.ControlCount
if This.Controls(i).TabIndex = 1
This.Controls(i).SetFocus()
Exit
endif
endfor
Not sure how to go about it for a single page, but I know that the entire pageframe control can be subclassed.
>I have a form which has about 5 tabbed pages.
>I'd like to be able to start at page on, and when the last field is entered on page 1, go automatically to the forst fiels on page 2 etc...
>
>Anybody got any experience of doing this.
>
>
>One other thing.... I'm finding that I would like to set my own base classes up for Pages within a Page frame.. but I cant seem to be able to sub class the foxpro basec class fro a page.
>
>Any help appreciated.
>
>regards
>
>Gerard
--Todd Sherman
-Wake Up! Smell the Coffee!