Question Open file in dafault brower

jaksel

Member
Joined
Sep 3, 2008
Messages
9
Programming Experience
Beginner
This code I know:
System.Diagnostics.Process.Start("http://www.google.com")

My situation is a little different. In my VB.NET project, I have imported (or created) a website that is contained in a folder named SAHelp. The idea is to have a local website installed to the user's computer so when they click help, the file C:\[installation path]\SAHelp\index.htm will open in their default browser.

I can certainly make this work by publishing a website to the real internet such as:
System.Diagnostics.Process.Start("http://www.SomeDumbWebsite.com") which would act as my online help. But I want to bury this in my application.

Part 2:
I'd like to detect if the user has an active internet connection:

If (User has Active Internet Connection) then
System.Diagnostics.Process.Start("http://www.SomeDumbWebsite.com")
else
** what code goes here?
** I want to open a file that is in a subdirectory to my .exe file in this application
End If
 
Top Bottom