By setting a single property, you can make the C1Wizard control automatically navigate between steps. You can also customize autoplay by setting the delay between transitions. This topic will show you how to set autoplay and customize the delay time between page views in Design view, in Source view, and in code.
In Design View
To set up auto play, complete the following steps:
The C1Wizard Designer Form opens.
In treeview, select C1Wizard1 to its list of properties and set the following.
Note: By default, the playthrough will end at the last step in the control. If you'd like the C1Wizard|tag=C1Wizard_Class control to continue cycling automatically through pages after one run-through, you can you can also set the Loop|tag=Loop_Property property to True.
Press OK to close the designer and then press F5 run the project. Observe that the steps of the control are played through automatically.
In Source View
Complete the following steps:
<cc1:C1Wizard ID="C1Wizard1" runat="server" Height="250px" Width="300px" AutoPlay="True" Delay="1500">
Note: By default, the playthrough will end at the last step in the control. If you'd like the C1Wizard control to continue cycling automatically through pages after one run-through, you can add Loop=True to the control's tags.
Run the program and observe that the steps of the control are played through automatically.
In Code View
Complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1Wizard1.AutoPlay = True C1Wizard1.Delay = 1500 |
To write code in C#
C# |
Copy Code
|
---|---|
C1Wizard1.AutoPlay = true; C1Wizard1.Delay = 1500; |
Note: By default, the playthrough will end at the last step in the control. If you'd like the C1Wizard control to continue cycling automatically through pages after one run-through, you can you can also set the Loop property to True.
Run the program and observe that the steps of the control are played through automatically.