Solved

Open URL in VB.NET

Posted on 2003-12-11
5
1,863 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 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