This project has moved and is read-only. For the latest updates, please go here.

Set initial page on form load

Mar 23, 2014 at 5:00 AM
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?
Apr 15, 2014 at 5:01 PM
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.