dahall / AeroWizard

Library for easy creation of custom and Aero Wizards. Aero Wizard strictly follows Microsoft guidelines and uses Visual Styles to get visual theming.
MIT License
112 stars 32 forks source link

Set initial page on form load #53

Closed dahall closed 5 years ago

dahall commented 5 years ago

I am trying to set the initial page on the form load event (even tried the shown event) for the wizard using the NextPage method, but the wizard keeps coming up with the first page each and every time.

I tried to place the code in the constructor after the initializecomponents call, but I am getting a generic null object exception from within the wizard control library.

I don't want to use the suppress wizard page functionality, as I still want users to navigate to the skipped pages using the back button if needed.

Any suggestions?

Originally posted: 2014-03-22T22:00:53

dahall commented 5 years ago

The first page is set when the handle for the form is created. If you call NextPage after the handle is valid, it should work. If you need something else to make this work, suggest a model and I will work to get it into the code.

Originally posted: 2014-04-15T10:01:38