Solved

Open URL in VB.NET

Posted on 2003-12-11
5
1,856 Views
Last Modified: 2010-05-18
How would one open a URL in VB.NET

example:
IExplorer.Open("http://www.google.com")

   - Marc
0
Comment
Question by:MarcGraff
  • 2
  • 2
5 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 500 total points
ID: 9922645
       Dim sURL As String = "c:\temp\cdrom.html"
        System.Diagnostics.Process.Start(sURL)
 
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 9922653
System.Diagnostics.Process.Start("http://www.google.com")
0
 
LVL 5

Expert Comment

by:seeflat
ID: 9922671
Imports System.Diagnostics

-------------------------------------------------------------------------

Dim procOptions = New ProcessStartInfo("C:\Program Files\Internet Explorer\iexplore.exe", "http:\\www.google.com")
procOptions.UseShellExecute = False  ' set to true to make silent/background
Dim myProcess = Process.Start(procOptions)

HTH
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9922716
Thank you!

   - Marc
0
 
LVL 5

Expert Comment

by:seeflat
ID: 9922727
Whoops! Didn't refresh; however while Mikal613's solution will work; you don't have a reference to the process.
With the way I do it, you can issue: myProcess.CloseMainWindow() and the window will close, among other possibilities.

I just don't like fire and forget stuff.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question