Another way would be this in your button's click event:
_VFP.ActiveForm.ActiveControl.SetFocus
Like Ko's way, it won't work for a grid.
>I have a form with a toolbar. On the toolbar I have a save button. Normally a user will add or edit the data on the form and click save on the toolbar, and everything works...
>
>However, I have on particular user that wants to change the data in one textbox, and then click save. This does not work, the user needs to change the data and then hit TAB or ENTER then click save.
>
>Putting the SAVE button on the form allows this behavior, but I want to keep the SAVE button on the toolbar...
>
>Is there a way to get this to work with the SAVE button on the toolbar?
>
>Thanx,
>
>Mike
Sylvain Demers