| Flash for .NET Task-Based Help > C1FlashCanvas Tasks |
The following topics assume that you have placed a C1FlashCanvas component on the form.
Before you begin, you must create a LaunchViewer function to view the canvas in either Flash Player 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);
}
}
|
|