Click here to Skip to main content
11,702,929 members (68,232 online)
Click here to Skip to main content

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

, 4 Feb 2008 CPOL 367.2K 11.5K 378
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

You may also be interested in...

Comments and Discussions

 
GeneralBindingImage Change Pin
John Simmons / outlaw programmer9-Dec-08 3:31
mvpJohn Simmons / outlaw programmer9-Dec-08 3:31 
GeneralSuggestion Pin
Andrew day8-Dec-08 8:59
memberAndrew day8-Dec-08 8:59 
GeneralRe: Suggestion Pin
John Simmons / outlaw programmer9-Dec-08 3:08
mvpJohn Simmons / outlaw programmer9-Dec-08 3:08 
GeneralRe: Suggestion Pin
Andrew day9-Dec-08 3:24
memberAndrew day9-Dec-08 3:24 
GeneralRe: Suggestion Pin
John Simmons / outlaw programmer9-Dec-08 3:32
mvpJohn Simmons / outlaw programmer9-Dec-08 3:32 
GeneralRe: Suggestion Pin
Andrew day9-Dec-08 3:36
memberAndrew day9-Dec-08 3:36 
GeneralRe: Suggestion Pin
John Simmons / outlaw programmer9-Dec-08 4:48
mvpJohn Simmons / outlaw programmer9-Dec-08 4:48 
GeneralNo overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler<wizardbase.wizardcontrol></wizardbase.wizardcontrol> Pin
Andrew day8-Dec-08 8:53
memberAndrew day8-Dec-08 8:53 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
Member 323068223-Dec-08 5:00
memberMember 323068223-Dec-08 5:00 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
Metalzang9-Mar-09 15:39
memberMetalzang9-Mar-09 15:39 
AnswerRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
Metalzang22-Mar-09 14:35
memberMetalzang22-Mar-09 14:35 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
whuili1-Apr-09 12:49
memberwhuili1-Apr-09 12:49 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
Metalzang1-Apr-09 22:25
memberMetalzang1-Apr-09 22:25 
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pin
RavindranathW19-Aug-09 10:04
memberRavindranathW19-Aug-09 10:04 
GeneralMy vote of 2 Pin
John Simmons / outlaw programmer5-Dec-08 10:49
mvpJohn Simmons / outlaw programmer5-Dec-08 10:49 
GeneralDesign support for steps Pin
Giorgi Dalakishvili26-Nov-08 22:58
mvpGiorgi Dalakishvili26-Nov-08 22:58 
GeneralMessage Removed Pin
Katekortez25-Oct-08 9:07
memberKatekortez25-Oct-08 9:07 
GeneralError i wizard Pin
Member 237150223-Oct-08 10:16
memberMember 237150223-Oct-08 10:16 
GeneralRe: Error i wizard Pin
Frits van Soldt10-Nov-08 22:38
memberFrits van Soldt10-Nov-08 22:38 
GeneralSetting CurrentStepIndex Pin
dave5280312-Oct-08 17:12
memberdave5280312-Oct-08 17:12 
GeneralRe: Setting CurrentStepIndex Pin
gujavierdra6-Aug-09 13:23
membergujavierdra6-Aug-09 13:23 
Generalshortcuts and tootips Pin
Member 226441716-Sep-08 3:28
memberMember 226441716-Sep-08 3:28 
QuestionStepIndex always -1? Pin
Stonkie22-Jul-08 12:08
memberStonkie22-Jul-08 12:08 
GeneralEvent NextButton other Button Pin
vitor.dumont18-Jul-08 3:54
membervitor.dumont18-Jul-08 3:54 
GeneralSuggested Improvement Pin
michieldejong16-Jul-08 4:14
membermichieldejong16-Jul-08 4:14 
GeneralError in Designer Pin
Serge Desmedt16-Jul-08 3:32
memberSerge Desmedt16-Jul-08 3:32 
QuestionAdding steps in run time? Pin
Parameshwaran Venkataraman14-Jul-08 1:26
memberParameshwaran Venkataraman14-Jul-08 1:26 
GeneralAgreementChangedEvent is not working Pin
Lavanya Jagadeesan13-Jul-08 23:38
memberLavanya Jagadeesan13-Jul-08 23:38 
QuestionError: System.IO.FileNotFoundException after changing subtitle Pin
Paul Meems9-May-08 9:10
memberPaul Meems9-May-08 9:10 
AnswerRe: Error: System.IO.FileNotFoundException after changing subtitle Pin
Manish Ranjan Kumar28-May-08 4:26
memberManish Ranjan Kumar28-May-08 4:26 
QuestionError setting LeftPair Pin
Member 4916597-May-08 10:10
memberMember 4916597-May-08 10:10 
AnswerRe: Error setting LeftPair Pin
Manish Ranjan Kumar28-May-08 4:22
memberManish Ranjan Kumar28-May-08 4:22 
GeneralRe: Error setting LeftPair Pin
John Simmons / outlaw programmer8-Dec-08 8:30
mvpJohn Simmons / outlaw programmer8-Dec-08 8:30 
AnswerRe: Error setting LeftPair Pin
voxxde23-Sep-09 10:27
membervoxxde23-Sep-09 10:27 
AnswerRe: Error setting LeftPair Pin
smummaneni22-Oct-09 7:17
membersmummaneni22-Oct-09 7:17 
GeneralRe: Error setting LeftPair Pin
spencepk1-Mar-10 6:53
memberspencepk1-Mar-10 6:53 
AnswerRe: Error setting LeftPair Pin
kennethpost2-Jun-10 20:02
memberkennethpost2-Jun-10 20:02 
GeneralGeneric Navigation rule Pin
buchstaben3-Mar-08 4:01
memberbuchstaben3-Mar-08 4:01 
GeneralRe: Generic Navigation rule Pin
Manish Ranjan Kumar28-May-08 4:23
memberManish Ranjan Kumar28-May-08 4:23 
GeneralBackButton.Enabled doesn't seem to work Pin
topry29-Feb-08 3:08
membertopry29-Feb-08 3:08 
GeneralRe: BackButton.Enabled doesn't seem to work Pin
Manish Ranjan Kumar28-May-08 4:24
memberManish Ranjan Kumar28-May-08 4:24 
GeneralRe: BackButton.Enabled doesn't seem to work Pin
gujavierdra7-Oct-10 3:52
membergujavierdra7-Oct-10 3:52 
QuestionNextButtonClick Event Pin
JEMiles26-Feb-08 18:29
memberJEMiles26-Feb-08 18:29 
GeneralRe: NextButtonClick Event Pin
MadStudent27-Feb-08 10:06
memberMadStudent27-Feb-08 10:06 
GeneralRe: NextButtonClick Event Pin
topry28-Feb-08 2:34
membertopry28-Feb-08 2:34 
AnswerRe: NextButtonClick Event Pin
Manish Ranjan Kumar28-Feb-08 19:12
memberManish Ranjan Kumar28-Feb-08 19:12 
GeneralRe: NextButtonClick Event [modified] Pin
MadStudent29-Feb-08 4:21
memberMadStudent29-Feb-08 4:21 
GeneralRe: NextButtonClick Event Pin
Martin Viktorin9-Apr-08 5:28
memberMartin Viktorin9-Apr-08 5:28 
GeneralRe: NextButtonClick Event Pin
MadStudent10-Apr-08 10:44
memberMadStudent10-Apr-08 10:44 
GeneralRe: NextButtonClick Event Pin
Martin Viktorin14-Apr-08 8:40
memberMartin Viktorin14-Apr-08 8:40 

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
Web04 | 2.8.150819.1 | Last Updated 4 Feb 2008
Article Copyright 2007 by Manish Ranjan Kumar
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid