General design with mulitple forms

G

Guest

Moving from VB6 to VB.NET or C# and had a general design question...

I currently have a VB6 app that functions like a wizard. Form1 is displayed
with configuration settings. The user enters the data and presses the Next
button to navigate to Form2. On Form2, the user can move to Form3 and also
has a Back button to return to Form1. There are about 10 forms total.

What is a good approach to handle the displaying of these forms? I am
probably going to write a controller class to handle the flow, but wanted to
see what other designs others have used.

Thanks for the input.
Brent
 
M

Marius Horak

Hate 10 form wizards.

This is what I would do.
A single form with a TabControl and 10 tabs.
Each tab has a panel that is a parent to what you had on each form.
This is for the designing purpose.

The TabControl.Visible is set to false as it's used as a container for
form design.
When Application starts the main panel's Parent from the first tab is
set to <this> and Dock to Fill.
Back/ Next buttons will make main panels visible/invisible and set
Parent to <this>

Done in one form.

MH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top