>Hi everybody,
>
>I know it should be simple, but from the method's code I want to check certain conditions and activate a particular page.
>
>I've tried
>
>
>thisform.pageframe1.ActivePage = 4
>
>and also
>
>thisform.pageframe1.Page4.Activate()
>
>and it didn't work. What should I do to activate the page?
>
>Thanks in advance.
ActivePage should work; I don't know what is going wrong.
On the other hand, I believe that Activate() is an event that fires AFTER the page has the focus, so that you can detect when the page gets active. To actually activate the page, the command would be something different, SetFocus() perhaps.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)