opening the default web browser

  • Thread starter Thread starter Paul M
  • Start date Start date
* "Paul M said:
how can i open the default web browser, from my vb.net windows app?

My FAQ:

Opening a file:

\\\
Imports System.Diagnostics

..
..
..
Dim psi As New ProcessStartInfo()
psi.UseShellExecute = True
psi.FileName = "C:\bla.html"
Process.Start(psi)
..
..
..
///

Starting an application:

If you want to start an application, you can simply call
'System.Diagnostics.Process.Start("C:\bla.exe")' or in VB.NET
'Shell("C:\bla.exe")'.

Opening a webpage in the default browser:

For startiung the system's default browser with a predefined URL, specify
the URL you want to be displayed instead of the filename in the code listed
above.
 
Back
Top