Wizard Screen Help

I am looking to create a wizard looking form but I think more complicated then your typical wizard. Currently I have 5 panels with diffrent items on each panel. Although the panels that are displayed are not always the same. On the first panel there is a combobox and depending on the index I want specific panels to be displayed. (they will always be displayed in the same order, atleast the visible ones).

So what I am really asking is how to program the next & previous button if the panel to follow is not the same all the time. So for example if the combobox's selected index = 1 then PanelPatient, PanelFire, PanelNarrative, PanelFinal is displayed. Although if the selected index = 2 then PanelPatient, PanelNarrative, and PanelFinal is only displayed.

Panels (In the order they would be displayed):
PanelGeneral (Always the starting panel)
PanelPatient
PanelPolice
PanelFire
PanelNarrative
PanelFinal

Thanks a lot!
Gunit2507Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics TeacherCommented:
You could place references to the panels in an ArrayList() or a Queue().

Then hide the current panel and show the next one from the collection structure.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gunit2507Author Commented:
Could you show an example of that?
Mike TomlinsonHigh School Computer Science, Computer Applications, Digital Design, and Mathematics TeacherCommented:
I'll get you an example...just haven't gotten there yet!   =)
Gunit2507Author Commented:
i actually figured it out, using an array... so if you want to feel free too, but its not really needed. Thanks thougH!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.