Put a textbox behind the last one in your pageframe and put this code in it's GotFocus () event:
WITH This.Parent.Parent
IF .ActivePage < .PageCount
.ActivePage = .ActivePage + 1
ENDIF
ENDWITH
In the Activate () event of the page, put this code:
This.MyFirstTextBox.SetFocus ()
The reason for the hidden textbox is that you need to know if the user go back or ahead in the tab order (he hit Shift+TAB, TAB or clicked on another control in the pageframe).
HTH
>I have a PageFrame with 3 pages. When adding a new record, I am able to Tab through all the items on the first Page (this is the behavior I want), but when the last item on that Page is tabed through, I would like the 2nd Page brought up with the cursor in the first field on the 2nd page (so that the user doesn't have to actually click on the 2nd Page).