Depend on which page you want to activate
THISFORM.PageFrame.Pages(n).Zorder(0)
And plus REFRESH()in the activate event of which page
Bye...
>Hi,
>My vfp5a written application had a main form with pageframe control
>that contains 05 pages plus other control like command buttons and
>labels.
>I had the main form with Keypreview = .T.
>and use the keypress and mouse move events to detect any movement
>and go to the respectives pages. For which respective page,
>I use the command below
>* depend on which page I want to activate
>THISFORM.PageFrame.ActivePage = 1
>THISFORM.PageFrame.Refresh()
>Plus this code in the activate event of which page
>THIS.Refresh()
>However, certain time, the page is set to go to the next page,
>but it just go to other random page and that page control like the
>command button is activated. What is wrong, please advise or assist.
>Thank a lot
Gotzon Echeverria