>FOR EACH oControl IN THISFORM.Controls > IF oControl.Tabindex = 1 > oControl.SetFocus() > ENDIF >ENDFOR >You can also get even more generic so that you can utilize other TabIndex settings. I do this to return to a specific control on a form. In my form base class, I have a method called; .SetFocusThisIndex() which takes as parameters, the container (form, container, page, etc.) that the control is on and the TabIndex I want to set focus to.