I'm having a bit of a problem getting my PageFrame to work the way I want it to.
Is there a way to change the ActivePage without actually
imediately activating that page? (I know, sounds stupid, but...)
Here's the scenario: I have a form with a two-page PageFrame. When my form runs, the form1.Init() calls a small form2 for the user to enter search criteria, which is returned to the form1.Init(). (The search criteria consist of locating a record from one of two recordsets.) If the search criteria calls for the first record set, the first page should be activated. Otherwise the second page should be activated.
The problem is, if I explicitely activate a page in the form1.Init(), it automatically gets activated again imediately after the Init() is done. I only want the correct page to get activated once, because the Activate method for each page invokes other methods that I only want to fire once each time the page is activated.
The only solution that I've found that comes close is seting the page order of the pages so that the first page in the PageFrame is the one I want opened first. The problem with this is that the Page tabs get changed (since I'm changing the PageOrder?), and I need the two pages to always
look like they're in the same order.
Anyone have any suggestions?
Thanks!