opening the default web browser

  • Thread starter Thread starter Paul M
  • Start date Start date
P

Paul M

how can i open the default web browser, from my vb.net windows app?

thanks,
 
* "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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top