| Flash for .NET Task-Based Help > C1FlashSlide Tasks |
The following topic assumes that you have placed a C1FlashSlide component on the form.
By using the C1FlashSlide component, you can render multiple pages as an automatic or user-controlled slideshow. By default, the SlideMode is Manual. You can change the SlideMode to Automatic in C1FlashSlide properties pane or with the C1FlashSlide Designer, which is available by right-clicking the C1FlashSlide component and selecting Design or Properties from its context menu.
Before you begin you must create a LaunchViewer function to view the slideshow in Flash Player, if available, or Internet Explorer. Add the following code in the source file to create the function:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Private Sub LaunchViewer(ByVal filename As String)
Try
System.Diagnostics.Process.Start(filename)
Catch
System.Diagnostics.Process.Start("IEXPLORE.EXE", filename)
End Try
End Sub
|
|
To write code in C#
| C# |
Copy Code
|
|---|---|
private void LaunchViewer(string filename)
{
try
{
System.Diagnostics.Process.Start(filename);
}
catch (Exception e)
{
System.Diagnostics.Process.Start("IEXPLORE.EXE", filename);
}
}
|
|