Link to home
Start Free TrialLog in
Avatar of pgloor
pgloor

asked on

Switching between Windows forms (SDI, Wizard app)

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.

Peter
Avatar of AlexFM
AlexFM

ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pgloor

ASKER

Thanks. It's what I've been looking for. I'm visiting CodeProject quite often and actually looked there first, but haven't found the two examples myself because I've been searching for the wrong keywords.

Peter