> Same result... - blank grid.
And if you comment out that part of the code, the grid appears fine?
> In my mind I already created something - I can add Property - "PrevFocus" and assign this property
>
> PrevFocus=this.name in each control LostFocus event ?
>
> So, in this case I can do on my navigation bar controls LostFocus event
> thisform.&PrevFocus..SetFocus() - right?
>
> But may be here is better and simpler solution?
>
>>>
>>>For example, I have form with 3 grids and navigation bar. I seat on second grid, then I click next button of my navigation bar. I want to return focus on second grid now. How can I do that?
>>
>>thisform.grd2.setfocus && or whatever you name the grid
I'm not sure how much flexibilty you want, maybe you could use Controls() collections in form, page, etc....if you need more flexibility than that, maybe you're on the right track with your idea...
Also, I don't usually recommend using Valid, but it has the ability to move backward using negative numbers...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.