By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 927 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

Opening Default Browser to a specific page

P: n/a
when i click a button i want to open the machines default web browser to a
specific page

how do i do this?
Regards
Michael Fellows
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
System.Diagnostics.Process.Start(http://www.microsoft.com)
OHM
Mike Fellows wrote:
when i click a button i want to open the machines default web browser
to a specific page

how do i do this?
Regards
Michael Fellows


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #2

P: n/a
Cor
Hi mike

rougly typed

\\\\
mywebbrowser.navigate2("myUrl")
///

I hope this helps?

Cor
when i click a button i want to open the machines default web browser to a
specific page

Nov 20 '05 #3

P: n/a
Cor
Hi OHM,

Reading it over, the answer was this,

:-)

Cor
System.Diagnostics.Process.Start(http://www.microsoft.com)

Nov 20 '05 #4

P: n/a
Thanks alot for your help guys that worked a treat, excpet you need the URL
in brackets :-)

Mike
"Cor" <no*@non.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
Hi OHM,

Reading it over, the answer was this,

:-)

Cor
System.Diagnostics.Process.Start(http://www.microsoft.com)


Nov 20 '05 #5

P: n/a
Just use the following in the Click_Event handler:

System.Diagnostics.Process.Start(URL)

where URL is a string containing the url of the website
that the default browser should open to. For example:

Dim URL As String = "http://www.google.com/"
System.Diagnostics.Process.Start(URL)

If you want to specify the browser to use, say Internet
Explorer, just use the following:

Dim URL As String = "http://www.google.com/"
System.Diagnostics.Process.Start("IExplore", URL)

If you want to specify Mozilla as the browser to use, use
the following code:

Dim URL As String = "http://www.google.com/"
System.Diagnostics.Process.Start("Mozilla", URL)

In fact, you can start any application this way. for
example, to fire up Notepad, use this:

System.Diagnostics.Process.Start("Notepad")

The parameter to pass is simply the name of the
executable file without the .exe extension.

Norm Bell

-----Original Message-----
when i click a button i want to open the machines default web browser to aspecific page

how do i do this?
Regards
Michael Fellows
.

Nov 20 '05 #6

P: n/a
I forgot to put the " " marks around it.

Cheers - OHM

Cor wrote:
Hi OHM,

Reading it over, the answer was this,

:-)

Cor
System.Diagnostics.Process.Start(http://www.microsoft.com)


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.