473,467 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

setting and getting current path of a ie window


I'm creating a copy of IE using System.Diagnostics.Process and I can pass it
any URL at startup, but can't find a way to check what page is open, or to
send a new page.

I'm implementing this for html help, and only want to change the page if the
user has navigated away from the current target, otherwise I just want to
give the broswer focus again. I'm reluctant to use the help provider class
because it opens using the system default browser and our (client provided)
style sheets don't work in FF.
Nov 17 '05 #1
3 1693
Dan,

In this case, you will not want to use the Process class to start up
internet explorer. If you do this, you will not be able to actually figure
out in a definitive manner which instance is "yours".

Rather, check out this knowledge base article titled "How to connect to
a running instance of Internet Explorer", located at (watch for line wrap):

http://support.microsoft.com/default...b;en-us;176792

It shows how to connect to a running instance of IE. This isn't why I
referred you to the article. It's in VB6, but it tells you which dlls to
reference, as well as which interfaces/classes to call.

All you have to do is create a new instance of SHDocVw.InternetExplorer
and then you can control it through that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Dan Neely" <Da******@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...

I'm creating a copy of IE using System.Diagnostics.Process and I can pass
it
any URL at startup, but can't find a way to check what page is open, or to
send a new page.

I'm implementing this for html help, and only want to change the page if
the
user has navigated away from the current target, otherwise I just want to
give the broswer focus again. I'm reluctant to use the help provider class
because it opens using the system default browser and our (client
provided)
style sheets don't work in FF.

Nov 17 '05 #2


"Nicholas Paldino [.NET/C# MVP]" wrote:
It shows how to connect to a running instance of IE. This isn't why I
referred you to the article. It's in VB6, but it tells you which dlls to
reference, as well as which interfaces/classes to call.

All you have to do is create a new instance of SHDocVw.InternetExplorer
and then you can control it through that.


This looks like what I need. VB source isn't a major issue. While far from
my prefered language it's easily readable, and that's the key point.
Nov 17 '05 #3


"Nicholas Paldino [.NET/C# MVP]" wrote:
All you have to do is create a new instance of SHDocVw.InternetExplorer
and then you can control it through that.


Where can I find documenatation on these classes? I seem to be getting what
I want, but I'd like toaccess the contents of one of the frames to see which
page of the doc the user is at, and to be able to forcably navigate to a
different one for context sensitive tasks (might need to simulate a
mouseclick since I think the subpages are dynamicly generated via xsl).
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim Jarman | last post by:
Apologies in advance for the long post - I wanted to be sure I included all the relevant details. The answer is probably very, very simple. I am doing something stupid here, but I don't know what...
9
by: runes | last post by:
Hi, I'm trying to set the title of the console window (CMD.EXE) in Windows. I want it set to the basename of the current directory and it should stay after the script has finished. Now, the...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
8
by: bryan | last post by:
Is there any way I can get the application path (the one returned by Request.ApplicationPath) in the Application_Start method in Global.asax? Request is not valid there. On a related note, is there...
2
by: Sam | last post by:
Hi all I'm looking for a way to detect the background color of my internal webpage through a stylesheet. And so far, the only solution I find is to open the styles.css file and parse the...
1
by: iwdu15 | last post by:
hi, how can i get the icon associated with a certain file type? thanks -- -iwdu15
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
7
by: Academic | last post by:
What are the different effects of the following two statements: C1.Cursor = Cursors.WaitCursor C1.Cursor.Current = Cursors.WaitCursor I believe the first replaces the entire C1.Cursor...
4
by: bushi | last post by:
hi! i'm designing a web application,basically it have two pages,"client_browser.apsx" & "adserver.aspx"."client_browser.aspx" contains an iframe,and in the iframe i have displayed my...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.