$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Windows Forms KetticWizard Control
Create user friendly wizard user interfaces for Windows Forms applications
Home > WinForms UI Controls > User Manual > Events of Wizard in C#

Events of KetticWizard Control for WinForms

KetticWizard control resembles the installation of standard wizards. It is able to help developers to divide a complicated operating process into various simple steps which allow the users of your application easily perform the operation. This KetticWizard control for Windows Forms completely supports the Wizard97 and Wizard Aero specifications. Additionally, it offers the design time support, predesigned welcome, completion, internal pages, as well as predefined themes support.

Events for Customizing KetticWizard in C#.NET

KetticWizard Windows Forms control contains the following events for the users to customize this control in Windows Forms application.
  • ChangingMode, this event is fired when we are to modify the mode of KetticWizard. It includes the arguments for the current and the next WizardMode.
  • ChangedMode, this event is fired when we modified the mode of KetticWizard. It contains the arguments for the previous and current WizardMode.
  • Next, this event is fired when we click the Next command button.
  • Previous, it is fired when we click the Back command button.
  • ChangingSelectedPage, this event is fired when we are to change the selected page of KetticWizard. It contains the arguments for the selected page of the KetticWizard and the page to be selected.
  • ChangedSelectedPage, this event is fired when we changed the selected page of KetticWizard. It contains the areguments for the previous selected page and the selected page of KetticWizard.
  • Finish, this event is fired when we click on the Finish command button
  • Cancel, it is fired when we click on the Cancel command button
  • Help, this event is fired when clicking on the Help command button

C# Implement the Events of KetticWizard Component

In the following C# code sample, we are going to subscribe to the Next event and handle this event. We implement this event to select the page when clicking on the Next command button. And then we will cancel the transition from the second to the third page and finally choose the first page of KetticWizard.

C# Subscribing to the Next event


this.ketticWizard1.Next += new WizardCancelEventHandler(ketticWizard1_Next);

C# Handling the Next event


private void ketticWizard1_Next(object sender, WizardCancelEventArgs e)
{
if (this.ketticWizard1.SelectedPage == this.ketticWizard1.Pages[1])
{
e.Cancel = true;
this.ketticWizard1.SelectedPage = this.ketticWizard1.Pages[0];
}
}
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls