Switching between Windows forms (SDI, Wizard app)
Posted on 2003-11-08
I want to create a wizard like C# application where the user has to go thru 7 steps and fill in some data or choose from a list of options.
Each form looks different, has a a specific menu, and has a Next and Back button on it. The user should be able to navigate back and forward at any time, in other words, the data already entered should still be available (either stored or in a hidden form).
I have already created the seven forms with all the controls and menues on it. The only thing I'm missing is the code in the click events to navigate between the forms. I don't know how to do this to achieve what I want. What is the best way to do this?
I've tried several things, but the results were not satisfying. Either I've got the next form in a new window (finally ending up with 7 stacked windows, showing the others if the user moves the top window) and/or I lost the data already entered or I didn't find a way to access the previous/next form.
What I would like to have, is just ONE application window with just one form (and menue) that changes if the user clicks on the Next or Previous buttons. Tell me if I need to change my mind and look different on it.