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

Open Internet Explorer URL when Clicking a button

P: n/a
Hello,

Does anyone know how to open an Internet Explorer URL with a specified Path
when someone clicks a URL?
Nov 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Cor
Hi Stewart.

Just distributed to this newsgroup yesterday

\\\ by Herfried. K. Wagner
Dim psi As New ProcessStartInfo
psi.FileName = "http://www.bla.foo"
psi.UseShellExecute = True
Process.Start(psi)
///

I hope this helps?

Cor
Nov 20 '05 #2

P: n/a
I mean, when they click a button...
"Stewart Saathoff" <st******@complete-networking.com> wrote in message
news:u7**************@TK2MSFTNGP09.phx.gbl...
Hello,

Does anyone know how to open an Internet Explorer URL with a specified Path when someone clicks a URL?

Nov 20 '05 #3

P: n/a
That does work, but I am trying to force images to open in internet explorer
from a file system location. For example, if the path to the image is
"c:\work\image.jpg", I want the image to open in internet explorer when I
click the button.

"Cor" <no*@non.com> wrote in message
news:e0*************@TK2MSFTNGP09.phx.gbl...
Hi Stewart.

Just distributed to this newsgroup yesterday

\\\ by Herfried. K. Wagner
Dim psi As New ProcessStartInfo
psi.FileName = "http://www.bla.foo"
psi.UseShellExecute = True
Process.Start(psi)
///

I hope this helps?

Cor

Nov 20 '05 #4

P: n/a
Cor
Stewart

Have for that a look to the Internet Explorer Object Navigate2, (not the
webbrowser).

I thought you could do it with that

Cor
That does work, but I am trying to force images to open in internet explorer from a file system location. For example, if the path to the image is
"c:\work\image.jpg", I want the image to open in internet explorer when I
click the button.

Nov 20 '05 #5

P: n/a
? I don't understand what you mean.

"Cor" <no*@non.com> wrote in message
news:eS*************@TK2MSFTNGP11.phx.gbl...
Stewart

Have for that a look to the Internet Explorer Object Navigate2, (not the
webbrowser).

I thought you could do it with that

Cor
That does work, but I am trying to force images to open in internet

explorer
from a file system location. For example, if the path to the image is
"c:\work\image.jpg", I want the image to open in internet explorer when I click the button.


Nov 20 '05 #6

P: n/a
Cor
Hi Steward,
? I don't understand what you mean.

Have for that a look to the Internet Explorer Object Navigate2, (not the
webbrowser).


I thought it was not so difficult but here you have the code
\\\
'set a reference to the microsoft internet controls

Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs _
) Handles Button1.Click
Dim ie As SHDocVw.InternetExplorer _
= New SHDocVw.InternetExplorer
ie.Visible = True
ie.Navigate2("c:\stewart.gif")
////

Was this what you did want to do?

Cor
Nov 20 '05 #7

P: n/a
* "Cor" <no*@non.com> scripsit:
Just distributed to this newsgroup yesterday

\\\ by Herfried. K. Wagner
Dim psi As New ProcessStartInfo
psi.FileName = "http://www.bla.foo"
psi.UseShellExecute = True
Process.Start(psi)
///


Thanks. Notice that I don't claim this code to be my intellectual
property.

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.