Click here to Skip to main content
6,594,932 members and growing! (15,739 online)
Email Password   helpLost your password?
Languages » C# » General     Beginner License: The Code Project Open License (CPOL)

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

By Manish Ranjan Kumar

This is a simple yet powerful wizard framework for .Net 2.0. Just drag and drop and your component is ready for use.
C# 2.0, Windows, .NET 2.0VS2005, Dev
Posted:6 May 2007
Updated:4 Feb 2008
Views:128,052
Bookmarked:326 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
Prize winner in Competition "Best C# article of Apr 2007"
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
114 votes for this article.
Popularity: 9.41 Rating: 4.58 out of 5
3 votes, 2.6%
1
3 votes, 2.6%
2
3 votes, 2.6%
3
13 votes, 11.4%
4
92 votes, 80.7%
5
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)

About the Author

Manish Ranjan Kumar


Member
Graduate from IIT Kharagpur.
Working with Windows forms application for last 3.5 Years.
Currently working with Proteans Software Solutions Bangalore.

Proteans a CAMO group company is an outsourcing company focusing on software product development and business application development on Microsoft Technology Platform. "Committed to consistently deliver high-quality software products and services through continual improvement of our knowledge and practices focused on increased customer satisfaction."
Occupation: Software Developer (Senior)
Company: Proteans
Location: India India

Other popular C# articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 157 (Total in Forum: 157) (Refresh)FirstPrevNext
QuestionNew version of WizardControl [modified] PinmemberFBCode23:44 19 Oct '09  
GeneralHow to control the navigation with Next & Back buttons by a criteria PinmemberEng.Zargar22:23 2 Aug '09  
GeneralOutsatnding Pinmembergujavierdra12:54 14 Jul '09  
GeneralLicenseFile Pinmembersqldevpro10:07 1 Mar '09  
GeneralWilling to change license to a less restrictive license? PinmemberMarkEWaite12:55 10 Dec '08  
GeneralRe: Willing to change license to a less restrictive license? PinmvpJohn Simmons / outlaw programmer5:43 12 Dec '08  
GeneralRe: Willing to change license to a less restrictive license? PinmemberMarkEWaite14:11 12 Dec '08  
GeneralBindingImage Change PinmvpJohn Simmons / outlaw programmer4:31 9 Dec '08  
GeneralSuggestion PinmemberAndrew day9:59 8 Dec '08  
GeneralRe: Suggestion PinmvpJohn Simmons / outlaw programmer4:08 9 Dec '08  
GeneralRe: Suggestion PinmemberAndrew day4:24 9 Dec '08  
GeneralRe: Suggestion PinmvpJohn Simmons / outlaw programmer4:32 9 Dec '08  
GeneralRe: Suggestion PinmemberAndrew day4:36 9 Dec '08  
GeneralRe: Suggestion PinmvpJohn Simmons / outlaw programmer5:48 9 Dec '08  
GeneralNo overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler PinmemberAndrew day9:53 8 Dec '08  
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler PinmemberMember 32306826:00 23 Dec '08  
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler PinmemberMetalzang16:39 9 Mar '09  
AnswerRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler PinmemberMetalzang15:35 22 Mar '09  
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler Pinmemberwhuili13:49 1 Apr '09  
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler PinmemberMetalzang23:25 1 Apr '09  
GeneralRe: No overload for 'wizardControl1_NextButtonClick' matches delegate 'WizardBase.GenericCancelEventHandler PinmemberRavindranathW11:04 19 Aug '09  
GeneralMy vote of 2 PinmvpJohn Simmons / outlaw programmer11:49 5 Dec '08  
GeneralDesign support for steps PinmvpGiorgi Dalakishvili23:58 26 Nov '08  
General[Message Removed] PinmemberKatekortez10:07 25 Oct '08  
GeneralError i wizard PinmemberMember 237150211:16 23 Oct '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 4 Feb 2008
Editor: Genevieve Sovereign
Copyright 2007 by Manish Ranjan Kumar
Everything else Copyright © CodeProject, 1999-2009
Web21 | Advertise on the Code Project