>Hi All,
>
>I have a form in a pageframe. On the form the first textbox
>is 'Category', and a button for Adding a new form. In the
>Click method of the 'New' button I would like to SetFocus to
>TextBox 'Category'. The documentation I have states that the
>syntax should be Control.SetFocus(Category.SetFocus). But that
>isn't working. I'm getting an message that Category is not found
>even when I reference it as 'ThisForm.PageFrame1.Page1.Category.SetFocus().
>
>Any help would be appreciated.
>
>Regards,
>
Paige,
The textbox has a Name property, check it out and fidn out what the name of the textbox is. Then you canuse (assuming the textbox is in the page and not ON the page);
THISFORM.PageFrame1.Page1.TextBoxName.SetFocus()
If you are using VFP 5.0, you can right click in teh editor and choose List Objects, from the list select you textbox and the reference magically appears in the editor for you.