Launching Browser To Specific URL From VB.NET

  • Thread starter Thread starter Chip Pearson
  • Start date Start date
C

Chip Pearson

I'm sure this is a simple question, but the answer eludes me. Using VB.NET
in VS2008 running under Vista, how to I launch Internet Explorer (or the
user's default browser) and have it open to a specific URL. I don't need to
control the browser once it is open. All I need to do is open it up to a
URL. E.g,

Sub Button1_Click()
Dim URL As String = "http://www.cpearson.com"
<what goes here>.Navigate Address:=URL
End Sub

Thanks in advance.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 
I'm sure this is a simple question, but the answer eludes me. Using VB.NET
in VS2008 running under Vista, how to I launch Internet Explorer (or the
user's default browser) and have it open to a specific URL. I don't need to
control the browser once it is open. All I need to do is open it up to a
URL. E.g,

Sub Button1_Click()
    Dim URL As String = "http://www.cpearson.com"
    <what goes here>.Navigate Address:=URL
End Sub

Thanks in advance.

--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
    Excel Product Group
Pearson Software Consulting, LLCwww.cpearson.com
(email on web site)

That should also work:

Shell("explorer.exe http://www.microsoft.com", _
AppWinStyle.NormalFocus)

HTH,

Onur Güzel
 
Back
Top