Click here to Skip to main content
12,999,628 members (43,111 online)
Click here to Skip to main content


205 bookmarked
Posted 18 Sep 2002

TSWizard - a wizard framework for .NET

, 26 May 2003
Provides a framework for creating wizards for use in your .NET applications
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace TSWizardDemo
	public class DemoWizard : TSWizards.BaseWizard
		private System.ComponentModel.IContainer components = null;

		public DemoWizard()
			// This call is required by the Windows Form Designer.

			// TODO: Add any initialization after the InitializeComponent call
			Logo = new Bitmap(typeof(DemoWizard), "customLogo.jpg");

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
			if( disposing )
				if (components != null) 
			base.Dispose( disposing );

		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
			// wizardTop
			this.wizardTop.Size = new System.Drawing.Size(490, 64);
			this.wizardTop.Visible = true;
			// cancel
			this.cancel.Location = new System.Drawing.Point(10, 8);
			this.cancel.Visible = true;
			// back
			this.back.Location = new System.Drawing.Point(298, 8);
			this.back.Visible = true;
			// next
			// = new System.Drawing.Point(394, 8); = true;
			// panelStep
			this.panelStep.Location = new System.Drawing.Point(0, 64);
			this.panelStep.Size = new System.Drawing.Size(490, 293);
			this.panelStep.Visible = true;
			// DemoWizard
			this.AllowClose = TSWizards.AllowClose.Ask;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(490, 357);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
			this.FirstStepName = "Step1";
			this.Name = "DemoWizard";
			this.Text = "Wait On Us ordering wizard";
			this.LoadSteps += new System.EventHandler(this.DemoWizard_LoadSteps);


		private void DemoWizard_LoadSteps(object sender, System.EventArgs e)
			AddStep("Step1", new Step1());
			AddStep("Step2", new Step2());
			AddStep("Step3", new Step3());
			AddStep("Step4", new Step4());
			AddStep("Step5", new Step5());

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The BSD License


About the Author

James T. Johnson
Software Developer (Senior) InfoPlanIT, LLC
United States United States
James has been programming in C/C++ since 1998, and grew fond of databases in 1999. His latest interest has been in C# and .NET where he has been having fun writing code starting when .NET v1.0 was in its first beta.

He is currently a senior developer and consultant for InfoPlanIT, a small international consulting company that focuses on custom solutions and business intelligence applications.

He was previously employed by ComponentOne where he was a Product Manager for the ActiveReports, Data Dynamics Reports, and ActiveAnalysis products.

Code contained in articles where he is the sole author is licensed via the new BSD license.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170624.1 | Last Updated 27 May 2003
Article Copyright 2002 by James T. Johnson
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid