MarcGraff
asked on
Open URL in VB.NET
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
System.Diagnostics.Process .Start("http://www.google.com")
Imports System.Diagnostics
-------------------------- ---------- ---------- ---------- ---------- -------
Dim procOptions = New ProcessStartInfo("C:\Progr am Files\Internet Explorer\iexplore.exe", "http:\\www.google.com")
procOptions.UseShellExecut e = False ' set to true to make silent/background
Dim myProcess = Process.Start(procOptions)
HTH
--------------------------
Dim procOptions = New ProcessStartInfo("C:\Progr
procOptions.UseShellExecut
Dim myProcess = Process.Start(procOptions)
HTH
ASKER
Thank you!
- Marc
- Marc
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.
With the way I do it, you can issue: myProcess.CloseMainWindow(
I just don't like fire and forget stuff.