Launching Programs Or Files From Your Application 101

In .NET it’s much simpler. Simply use the following code:

C#

try
{
  System.Diagnostics.Process.Start(@"c:\mywebpage.html");
}
catch
{}

VB

Try
System.Diagnostics.Process.Start("c:\mywebpage.html")
Catch
End Try

 

Tip Submitted By: David McCarter


Discover more from dotNetTips.com

Subscribe to get the latest posts sent to your email.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.