Hi eric,
How about trapping a TAB in the KeyPress event of the last control in the first page of the frame which would set the Frame.ActivePage property to the page number you want. Don't forget to also set the focus to the first control on the target page.
HTH
Liam
>Hello!
>
>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?
>
>Any idea?
>
>Thank's,
>Eric
Liam O'Hagan
MCP VFP Desktop Apps