Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe Click - Programatic vs manual
Message
 
 
To
12/04/2000 00:26:50
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00358529
Message ID:
00358542
Views:
12
Hi Doug,

The issue here is that Activate is an event method, not a method. In other words, the Activate event fires when a page is activated, it does not activate a page.

To activate a page, set the ActivePage property of the pageframe to the value of the pageorder property of the page you wish to activate:
thisform.PageFrame1.ActivePage = thisform.PageFrame1.Page2.PageOrder

or

*-- Heres a way to do it without having to know 
*-- the name of the page object (Page2)
thisform.PageFrame1.ActivePage = thisform.PageFrame1.Pages(2).PageOrder
Rick

>Hi All,
>
>When I issue a programatic thisform.PageFrame1.Page2.activate from another page on the page frame I get a different result than when I click manually on the tab. Thing is, both activate the ACTIVATE method.
>
>Am I missing something obvious or is there a known issue with this?
>
>Best,
>
>DD
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform