default webbrowser

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,530
Location
Lansing, MI; USA
Programming Experience
10+
ok I already know how to open a new internet explorer window point @ a website in vb.net this way:

System.Diagnostics.Process.Start("IExplore", "http://www.website.com")

this only opens IE (of course) is there a way to have the system open their default web browser? like Netscape or Firefox?
 
of course, i neglected to check the other signature calls for the process.start function, thanx neal
 
I am having a similar problem but the difference is it seems not to load the web page when i click the button. Here is my code i might be missing something......

Cheers
Mattcya :)

'Opens a Web Browser to the following Link

System.Diagnostics.Process.Start("Iexplore", "http://melbourne.citysearch.com.au/map?mode=route&submit=route&lat_1=&long_1=&lat_2=&long_2=&street_1=726+high+street&city_1=kew&state_1=Victoria&street_2=" & txtAddressLine2.Text & "&city_2=" & txtCity.Text & "&state_2=" & txtState.Text & "&zip_2=" & txtPostcode.Text & "&x=10&y=9")

 
Sorry that code again hehehe :)

Private Sub BtnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

'Opens a Web Browser to the following Link

System.Diagnostics.Process.Start("Iexplore", "http://melbourne.citysearch.com.au/map?mode=route&submit=route&lat_1=&long_1=&lat_2=&long_2=&street_1=726+high+street&city_1=kew&state_1=Victoria&street_2=" & txtAddressLine2.Text & "&city_2=" & txtCity.Text & "&state_2=" & txtState.Text & "&zip_2=" & txtPostcode.Text & "&x=10&y=9")

End Sub

 
try useing just this:

System.Diagnostics.Process.Start("http://melbourne.citysearch.com.au/map?mode=route&submit=route&lat_1=&long_1=&lat_2=&long_2=&street_1=726+high+street&city_1=kew&state_1=Victoria&street_2=" & txtAddressLine2.Text & "&city_2=" & txtCity.Text & "&state_2=" & txtState.Text & "&zip_2=" & txtPostcode.Text & "&x=10&y=9")
 
The next question is how do you start a NEW browser instance? If IE is already open and you're enjoying your favorite web page, then run this code (Process.Start(MyURL)) IE will use the existing process and the next thing you know, you've lost your reading material! :)
 
Great Thanks for that it works like a charm. :)

You guys!! "Like i have said in prior threads" Are Champions!

Cheers
 
Back
Top