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

巧了我就是萌 提交于 2019-11-28 06:49:38

Here are a few more resources you should check out:

  1. This DevExpress WinForms control: http://www.devexpress.com/Products/NET/Controls/WinForms/Wizard/

  2. A home-grown wizards framework: http://weblogs.asp.net/justin_rogers/articles/60155.aspx

  3. A wizard framework by Shawn Wildermut part of the Chris Sells's Genghis framework: http://www.sellsbrothers.com/tools/genghis/

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.

http://www.codeproject.com/KB/miscctrl/DesignTimeWizard.aspx

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.

Take a look at this article on MSDN about "inductive user interfaces". It describes a framework (and provides the code to download) based on UserControls that give you "navigation" within a form. Perfect for designing wizards.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!