| Flash for .NET Task-Based Help > C1FlashMovie Tasks |
The following topics assume that you have placed a C1FlashMovie component on the form.
Before you begin you must create a LaunchViewer function to view the movie 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
|
|---|---|
Imports C1.C1Flash
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
|
|---|---|
using C1.C1Flash;
private void LaunchViewer(string filename)
{
try
{
System.Diagnostics.Process.Start(filename);
}
catch (Exception e)
{
System.Diagnostics.Process.Start("IEXPLORE.EXE", filename);
}
}
|
|