>I have a pageframe on my form with multiple page.
>When no control have the focus on page one, for example the last control lost the focus by pressing TAB key, I want the page two to have the focus automaticaly. When a page lost the focus, the focus isn't going to the pageframe.
>
>Where should I put the code to do this?
>There's no Lostfocus method, I have tried Deactivate event with no succes.
>May be there is a property?
Hi, Eric.
You could do it with code in your base classes, but I think it would be a lot of overhead just for a few cases (unless you use lots of pageframes).
But you can make a little pageframe builder (or expand it if you already have it) to cycle trough all the controls on each frame, picking the highest taborder (with tabstop=TRUE) and then apply to that a piece of code in it's lostfocus to jump to next frame's first control.
If you haven't write a builder yet, don't panic. It's easier that it seems. Take a look at the BuilderX class that comes with VFP.
Maybe there is a simpler solution, of course.
Good luck.