THis work like a charm; however I miscalculated what I after. I have a fix amount of pages in my pageframe such as:
page1
page2
...
page20
then I'm adding pages programatically such as my goto_detailpage. I've wrote a method as you told me and what this event does is toggle a container visible=.F. if I click on this goto_detailpage. What I need is a way to turn container visible=.T. if I click on other pages. How would I go about doing that? Do I need to bind all 20 other pages to method that sets visible=.T. or is there more efficient way of doing this. Thanks
Nick
>Create a method in the form i.e. _PageEvent, code in it what You want to do when the Activate of the page occurs
>
>After additing the page You can Use:
>
> thisform.my_pf1.PageCount=thisform.my_pf1.PageCount+1
> thisform.gotodetail_page = thisform.my_pf1.PageCount
> newpage = "thisform.my_pf1.Page"+TRANSFORM(thisform.gotodetail_page)
> BINDEVENT(&newpage, "Activate", thisform,"_PageEvent", 0)
>
>
>Don't forget to UNBINDEVENTS() If You remove that page.