J. Crescencio,
>>> You don't need to. Just set the tabindex property
>>> of the control(s). The lowest TabIndex setting will
>>> have the focus when the form is activated.
I have to do this because this form is inside a FormSet. Then I have to control this Form with Form.Visible = .T. / .F. - Then, when I have to know the firstobject because the second time that I do Form.Visible = .T., the cursor is in the object that the last time...
I create one propertie, where I type the name of object, then I can do SetFocus... but maybe, VFP makes it easier! :)
Sorry about my English... :)
[]'s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte