This project is read-only.

Dynamically change first page

Jan 28, 2013 at 8:32 AM

Hi all,

Is there a possibility that I can change which of the wizards' pages is the start-up page?

For instance I have 2 pages, but when a certain requirement is already met the first wizard page does not have to be displayed, only the second.


Thanx in advance

Feb 20, 2013 at 7:47 AM
I have found the solution and hope this helps someone!

You can use the following method:
Wizard.Pages.Insert(int index, WizardPage page)
So to change the first page dynamically you can do the following:
if (condition)
MyWizard.Pages.Insert(0, MyFirtstConditionPage);
MyWizard.Pages.Insert(0, MySecondConditionPage);