What is the best way to create a wizard in C# 2.0?


I have a winforms application where users will be creating stock items, and a time of creation there are a number of different things that need to happen.

I think the UI for this should probably be a wizard of some kind, but I'm unsure as to the best way to achieve this. I have seen a couple of 3rd party Wizard controls, and I have also seen manual implementations of making panel visible/invisible.

What are the best ways that people have used in the past, that are easy to implement, and also make it easy to add "pages" to the wizard later on if needed?

By : csjohnst


I know this answer has already been accepted, but I just found a better Wizard control that's free, and of course, since it's on CodeProject, includes the source, so you can modify it if it's not exactly what you want. I'm adding this as an answer for the next person to stumble across this question looking for a good Wizard control.


By : David

The easiest way to create a wizard dialog is to use one of the third-party versions available that handle all of the "hard stuff" (the page navigation, UI framework, etc.) for you. The one I like the most is from Divelements; they have both a WinForms and a WPF version.

Use a tab-control inside a form.

Change back color to "Control" in all tab-pages.

Set "appearance" to flat buttons to get rid of the white border-stuff.

Hide the tabs by sizing the entire control so that the tabs gets pushed up "under" the title bar of the form. If you need other controls (or banner maybe) above the tab-control, then instead hide the tabs with a panel-control or similar.

Childplay to code logic for back/next buttons and very easy to extend with new pages.

By : sharkin

This video can help you solving your question :)
By: admin