>I'm sure there is something in my code causing this, but...
>
>I'm setting the focus from a command button Click on one page to the first object on another page. When the object receives the focus it immediately gives it away to the second object. I can stop the focus on the first object by putting NoDefault in the LostFocus, but this also keeps the cursor from moving away from the first object. Even if I remove the SetFocus line from the command button on the first page, the behaviour is the same. This focus stuff is killing me lately - and my project timelines... Any ideas on what I should be looking for? Thanks!
>
>Regards, Renoir
Renoir,
It shouldn't have something with commandbutton's setfocus. Are you sure in Gotfocus, When etc or target object doesn't have some code to lend focus to next ?
If code is already complex enough to find where i stems from you could still use Lostfocus with a flag :
if this.Tag ='keepfocus'
nodefault
this.Tag = ''
endif
Commandbutton click or some UIEnable would set Tag to 'keepfocus' for the first object. A quick-temp fix :)
Cetin