473,394 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Open Internet Explorer URL when Clicking a button

Hello,

Does anyone know how to open an Internet Explorer URL with a specified Path
when someone clicks a URL?
Nov 20 '05 #1
7 2932
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
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
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
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
? 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
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
* "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
2
by: Alessandra | last post by:
Hi all, I am trying to build a pop-up into a Web page. The pop-up should open when clicking a button. It works fine on Mozilla and Opera, but Internet Explorer refuses to open the pop-up. How...
5
by: Clemens Ortwickler | last post by:
Hello Is it possible with JavaScript to prevent that a User is closing the Internet Explorer? Because it is important for me that the User pushes the cancel Button of this webapplication how can...
5
by: Edward Mitchell | last post by:
Is there a way that I can repair MS Internet Explorer? I seem to have broken it somewhere. I have been developing a .NET app. Three days ago I saw a message box in a web site that I visit saying...
1
by: David Perez | last post by:
Hello. I have a problem with my Web Application in VB.NET and aspx pages. I try to open a SaveDialog window, to open or save a document when user clicl on a button, and Internet Explorer prompts...
10
by: Åženol Akbulak | last post by:
Hi, I have a form page to print on my web application(asp.net). I want to show the page in WORD. I use that code in asp.net Page_Load event: Response.Clear(); Response.ContentType =...
8
by: groeny | last post by:
Hi all, I am trying to build a pop-up into a Web page. The pop-up should open when clicking a button. It works fine on Mozilla, but Internet Explorer refuses to open the pop-up. How can I make...
4
by: Kaustubh Budukh | last post by:
I am designing a VB.NET based website I have a hyperlink, upon clicking on it a "File Download" prompt opens which asks me whether I want to "Save" the file, "Open" But I want it to...
0
by: =?Utf-8?B?Si5MLg==?= | last post by:
I am unable to access the internet when I click on internet explorer. The Internet Properties window appears only. I click on OK and then attempt to access the internet again by clicking on the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.