Yes I have not been able to explain better. I just want to setfocus() but I want a generic routine to find out the first user usable object firstly on the form itself and if not found on the page1 of the pfg. But automated not hardcoding. I want to call something like this:
thisform.SetFocusToFirstObject()
and lo presto it should be done <g>.
>I may not have understood you right - if you have a textbox or other control just on the form then setting it's tabindex to 1 will ensure that it receives focus when the form is shown. Otherwise if the control is on the pageframe you will need something like this in the init of the form...
>
>
>THISFORM.PAGEFRAME.PAGE1.TEXTBOX.SETFOCUS()
>