Click here to Skip to main content
11,412,834 members (77,027 online)
Click here to Skip to main content

A Simple Wizard Control for .Net 2.0 with Full Designer Support

, 4 Feb 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
This is a simple yet powerful wizard framework for .Net 2.0. Just drag and drop and your component is ready for use.
WizardDemo1.png

Introduction

This control allows the creation of a wizard framework in seconds. All you need to do is drag and drop and your wizard is ready for use. This wizard control has full designer support and is highly customizable according to the needs of the user.

Background

I was trying to find a control similar to the wizard in ASP.NET. I learned that it is not available in the .NET Framework, so I decided to make a framework that would allow me to make a wizard in a few simple steps. The wizard control is easy to use - a beginner user should be able to use this control without any problems. The wizard control provides full designer support to users by allowing them to view current program actions.

Using the Library

Step 1: Add a reference to Wizarddemo.dll. This step will add the control automatically to the toolbox of Visual Studio.

Step 2: Drag and drop WizardControl to the form where you want to implement the wizard.

WizardDemo3.png

Once dragged, a wizard is created for the form.

Step 3: Use the designer to customize the designer.

WizardDemo4.png
WizardDemo6.png
WizardDemo7.png
WizardDemo8.png
WizardDemo9.png
WizardDemo10.png
WizardDemo2.png
WizardDemo5.png

Points of Interest

WizardControl

Properties

  • BackButtonEnabled - Defines whether or not the Back button is enabled or disabled.
  • BackButtonText - This can be used to get or set the text of the Back button.
  • BackButtonVisible - Indicates whether the Back button is visible or not.
  • NextButtonEnabled - Defines if the Next button is enabled or disabled.
  • NextButtonText - This can be used to get or set text of the Next button.
  • NextButtonVisible - Indicates whether the Next button is visible or not.
  • CancelButtonEnabled - Defines whether the Cancel button is enabled or disabled.
  • CancelButtonText - This can be used to get or set the text of the Cancel button.
  • CancelButtonVisible - Indicates whether the Cancel button is visible or not.
  • HelpButtonEnabled - Defines whether the the Help button is enabled or disabled.
  • HelpButtonText - This can be used to get or set the text of the Help button.
  • HelpButtonVisible - Indicates whether the Help button is visible or not.
  • FinishButtonText - Text of Finish button.
  • EulaButtonEnabled - Defines if the Eula label is enabled or disabled.
  • EulaButtonText - This can be used to get or set the text of Eula label.
  • EulaButtonVisible - Indicates whether the Eula label is visible or not.

Events

  • BackButtonClick - The Back button is clicked.
  • CancelButtonClick - The Cancel button is clicked.
  • FinishButtonClick - The Finish button is clicked.
  • HelpButtonClick - The Help button is clicked.
  • NextButtonClick - The Next button is clicked.
  • EulaButtonClick - The Eula button is clicked.
  • CurrentStepIndexChanged - Occurs after a current step index is changed.

StartStep

Properties

  • Title - Title text of the step.
  • TitleAppearence - Title appearance of the step.
  • SubTitle - The subtitle text of the step.
  • SubtitleAppearence - The subtitle appearance of step.
  • LeftPair - The back color appearance of the left panel.
  • BindingImage - Image for the step.
  • Icon - Icon displayed in the start step.
  • LeftPanelBackColor - If image is null, left panel back color.

Events

  • BindingImageChanged - Fires when BindingImageChanged of the step is changed.

LicenseStep

Properties

  • Title - Title text of the step.
  • TitleAppearence - Title appearance of the step.
  • SubTitle - Subtitle text of the step.
  • SubtitleAppearence - Subtitle appearance of step.
  • Warning - Warning text.
  • WarningFont - The warning text appearance of the step.
  • BindingImage - Image for the step.
  • HeaderPair - Appearance of header.
  • Accepted - Status of license agreement.
  • AcceptText - Accept text.
  • DeclineText - Accept text.
  • LicenseFile - License file to display.

Events

  • BindingImageChanged - Fires when BindingImageChanged of the step is changed.
  • AgreementChanged - Fires when license agreement of the step is changed.

IntermediateStep

Properties

  • Title - Title text of the step.
  • TitleAppearence - The title text appearance of the step.
  • SubTitle - Subtitle text of the step.
  • SubtitleAppearence - The subtitle appearance of the step.
  • HeaderPair - Appearance of the header.
  • BindingImage - Image for the step.

Events

  • BindingImageChanged - Fires when BindingImageChanged of the step is changed.

FinishStep

Properties

  • BindingImage - Background of the finish step.
  • Pair - Appearance of the body.

Events

  • BindingImageChanged - Fires when BindingImageChanged of the step is changed.

Known Issues

  • During the removal of the wizard control, the step code is not removed from the designer.

History

This is the first release of the wizard. Suggestions are welcome for improving this framework.

First revision: 02/2008

  • Generic designer integrated.
  • Advanced generic collections used.
  • Advanced generic type converters.
  • Very small in size.
  • Serialization support.
  • Reset support.
  • Shadow text support.
  • During the removal of the wizard control, the step code is not removed from the designer: fixed.
  • Problem with binding image fixed; it was not setting to null.
  • New events added.
  • License agreement step added.
  • Finish page updated.
  • Other small issues fixed.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Manish Ranjan Kumar
Software Developer (Senior)
India India
No Biography provided

Comments and Discussions

 
Questionbug with the wizard control right to left support Pin
mahdi87_gh at 25-Oct-14 23:27
membermahdi87_gh25-Oct-14 23:27 
QuestionAdding extra button in next-prev strip Pin
Amarjeet Banwait at 24-Jun-13 4:55
memberAmarjeet Banwait24-Jun-13 4:55 
AnswerRe: Adding extra button in next-prev strip Pin
xuanguang at 27-Jul-13 19:11
memberxuanguang27-Jul-13 19:11 
GeneralRe: Adding extra button in next-prev strip Pin
Amarjeet Banwait at 14-Mar-14 2:15
memberAmarjeet Banwait14-Mar-14 2:15 
QuestionFinish Button Behavior Pin
lyricette at 31-Dec-12 6:55
memberlyricette31-Dec-12 6:55 
AnswerRe: Finish Button Behavior Pin
Member 9804281 at 4-Feb-13 7:07
memberMember 98042814-Feb-13 7:07 
GeneralGood example Pin
WenqingShieh at 25-Apr-12 18:37
memberWenqingShieh25-Apr-12 18:37 
Questioninteresting Pin
CIDev at 7-Nov-11 8:03
memberCIDev7-Nov-11 8:03 
QuestionNice Job Pin
Mike Hankey at 21-Aug-11 4:32
memberMike Hankey21-Aug-11 4:32 
QuestionWizardControl not appearing in toolbox Pin
Member 8138930 at 5-Aug-11 5:32
memberMember 81389305-Aug-11 5:32 
AnswerRe: WizardControl not appearing in toolbox Pin
Member 4313093 at 6-Dec-11 14:17
memberMember 43130936-Dec-11 14:17 
GeneralGetting Started Pin
JimboStink at 11-Feb-11 12:49
memberJimboStink11-Feb-11 12:49 
GeneralThis is interesting, but odd and unneccesary. Pin
Diamonddrake at 18-Jul-10 6:23
memberDiamonddrake18-Jul-10 6:23 
GeneralRe: This is interesting, but odd and unneccesary. Pin
Member 8714421 at 29-Nov-13 9:15
memberMember 871442129-Nov-13 9:15 
GeneralControlling the buttons Pin
securigy at 23-Jun-10 2:19
membersecurigy23-Jun-10 2:19 
GeneralMy vote of 2 Pin
securigy at 23-Jun-10 1:59
membersecurigy23-Jun-10 1:59 
GeneralBug-free version Pin
spencepk at 3-Mar-10 5:46
memberspencepk3-Mar-10 5:46 
QuestionNew version of WizardControl [modified] Pin
FBCode at 19-Oct-09 23:44
memberFBCode19-Oct-09 23:44 
QuestionHow to control the navigation with Next & Back buttons by a criteria Pin
Eng.Zargar at 2-Aug-09 22:23
memberEng.Zargar2-Aug-09 22:23 
AnswerRe: How to control the navigation with Next & Back buttons by a criteria Pin
xuanguang at 27-Jul-13 19:02
memberxuanguang27-Jul-13 19:02 
GeneralOutsatnding Pin
gujavierdra at 14-Jul-09 12:54
membergujavierdra14-Jul-09 12:54 
GeneralLicenseFile Pin
sqldevpro at 1-Mar-09 10:07
membersqldevpro1-Mar-09 10:07 
QuestionWilling to change license to a less restrictive license? Pin
MarkEWaite at 10-Dec-08 12:55
memberMarkEWaite10-Dec-08 12:55 
We've used your simple wizard control to create an installer for our product. We like it very much! Unfortunately, our intellectual property attorneys can't accept the Code Project Open License. I'm terribly sorry that we didn't consult with the IP attorneys before we implemented, but we didn't.

I'm not an intellectual property attorney and I'm not qualified to dispute their dislike of the CPOL license.

I'm trying to find a way to let us redistribute WizardBase.dll under a license which is acceptable to our IP attorney. Would you consider changing to a BSD license for this code, either at the project level, or as a special "one off" so I could use your code in a commercial product?

Thanks,
Mark Waite

MarkWaite at yahoo dot com
AnswerRe: Willing to change license to a less restrictive license? Pin
John Simmons / outlaw programmer at 12-Dec-08 5:43
mvpJohn Simmons / outlaw programmer12-Dec-08 5:43 
GeneralRe: Willing to change license to a less restrictive license? Pin
MarkEWaite at 12-Dec-08 14:11
memberMarkEWaite12-Dec-08 14:11 
GeneralBindingImage Change Pin
John Simmons / outlaw programmer at 9-Dec-08 4:31
mvpJohn Simmons / outlaw programmer9-Dec-08 4:31 
GeneralSuggestion Pin
Andrew day at 8-Dec-08 9:59
memberAndrew day8-Dec-08 9:59 
GeneralRe: Suggestion Pin
John Simmons / outlaw programmer at 9-Dec-08 4:08
mvpJohn Simmons / outlaw programmer9-Dec-08 4:08 
GeneralRe: Suggestion Pin
Andrew day at 9-Dec-08 4:24
memberAndrew day9-Dec-08 4:24 
GeneralRe: Suggestion Pin
John Simmons / outlaw programmer at 9-Dec-08 4:32
mvpJohn Simmons / outlaw programmer9-Dec-08 4:32 
GeneralRe: Suggestion Pin
Andrew day at 9-Dec-08 4:36
memberAndrew day9-Dec-08 4:36 
GeneralRe: Suggestion Pin
John Simmons / outlaw programmer at 9-Dec-08 5:48
mvpJohn Simmons / outlaw programmer9-Dec-08 5:48 
GeneralNo overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler<wizardbase.wizardcontrol></wizardbase.wizardcontrol> Pin
Andrew day at 8-Dec-08 9:53
memberAndrew day8-Dec-08 9:53 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
Member 3230682 at 23-Dec-08 6:00
memberMember 323068223-Dec-08 6:00 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
Metalzang at 9-Mar-09 16:39
memberMetalzang9-Mar-09 16:39 
AnswerRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
Metalzang at 22-Mar-09 15:35
memberMetalzang22-Mar-09 15:35 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
whuili at 1-Apr-09 13:49
memberwhuili1-Apr-09 13:49 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
Metalzang at 1-Apr-09 23:25
memberMetalzang1-Apr-09 23:25 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
RavindranathW at 19-Aug-09 11:04
memberRavindranathW19-Aug-09 11:04 
GeneralMy vote of 2 Pin
John Simmons / outlaw programmer at 5-Dec-08 11:49
mvpJohn Simmons / outlaw programmer5-Dec-08 11:49 
GeneralDesign support for steps Pin
Giorgi Dalakishvili at 26-Nov-08 23:58
mvpGiorgi Dalakishvili26-Nov-08 23:58 
General[Message Removed] Pin
Katekortez at 25-Oct-08 10:07
memberKatekortez25-Oct-08 10:07 
GeneralError i wizard Pin
Member 2371502 at 23-Oct-08 11:16
memberMember 237150223-Oct-08 11:16 
GeneralRe: Error i wizard Pin
Frits van Soldt at 10-Nov-08 23:38
memberFrits van Soldt10-Nov-08 23:38 
GeneralSetting CurrentStepIndex Pin
dave52803 at 12-Oct-08 18:12
memberdave5280312-Oct-08 18:12 
GeneralRe: Setting CurrentStepIndex Pin
gujavierdra at 6-Aug-09 14:23
membergujavierdra6-Aug-09 14:23 
Generalshortcuts and tootips Pin
Member 2264417 at 16-Sep-08 4:28
memberMember 226441716-Sep-08 4:28 
QuestionStepIndex always -1? Pin
Stonkie at 22-Jul-08 13:08
memberStonkie22-Jul-08 13:08 
GeneralEvent NextButton other Button Pin
vitor.dumont at 18-Jul-08 4:54
membervitor.dumont18-Jul-08 4:54 
GeneralSuggested Improvement Pin
michieldejong at 16-Jul-08 5:14
membermichieldejong16-Jul-08 5:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150427.1 | Last Updated 4 Feb 2008
Article Copyright 2007 by Manish Ranjan Kumar
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid