473,387 Members | 1,611 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,387 software developers and data experts.

IE Downloadcomplete

I am trying to detect when a web page has completely downloaded in Internet Explorer to trigger another event in VB.net application to update a textbox with the URL currently shown in the IE address box. I can easily do it in a Win form using "Webbrowser1.naviagated" as shown below:



Private Sub webBrowser1_Navigated(ByVal sender As Object, ByVal e As WebBrowserNavigatedEventArgs) Handles WebBrowser1.Navigated

Textbox1.Text = Me.WebBrowser1.Url.ToString()

End Sub



But when trying to detect the same type of event using an IE object in a running instance of Internet Explorer I cannot find an equivalent method. If tried something like the following:



Public Sub OpenDirecTVWebButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenDirecTVWebButton.Click

Dim objIE As SHDocVw.InternetExplorer

Dim objShellWins As SHDocVw.ShellWindows

objShellWins = New SHDocVw.ShellWindows

objIE = CreateObject("InternetExplorer.Application")

objIE.Navigate("http://www.directv.com/DTVAPP/index.jsp")

objIE.Visible = True

Textbox1.Text = objIE.LocationURL

End Sub



I cannot seem to get IE "downloadcomplete" to properly fire so that I can update the my textbox with the most current URL. I need a sub routine/event handler that will fire when a web page has downloaded or the URL has changed in a running standalone instance of IE.



Thanks

Davew01
Sep 6 '07 #1
0 1021

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: BKM | last post by:
I've been using the following 2 ways to make sure my WebBrowser is finished loading a page before continuing with the next code. do:doevents:loop while WebBrowser.Busy do:doevents:loop until...
0
by: SPG | last post by:
Hi, We are using the AxSHDocVw.AxWebBroswer control in our C# app. (It is the standard I net active X I think). Anyhow, we are experiencing some odd behaviour. Every now and then we find that a...
1
by: swin | last post by:
I've a wrapper class around axBrowser which logs into a site, navigates to a data page and harvests info from it. It works fine for a single data page (passing it a key for the data), but my...
2
by: Timmy | last post by:
VB.Net Standard 2003, Win2k Pro The following code generates the late binding msg "Option Strict On disallows late binding". How do I correct this and still have Strict On? Thanks, GG ...
12
by: Chad | last post by:
Hi In vb.net if you add a webbrowser control the windowclosing event does not fire. I have searched everywhere for a solution rather I get more people saying I have the same problem. I found...
5
by: GS | last post by:
is there such thing as DownloadComplete for AxSHDocVw.AxWebBrowser? and if there is, what is the name for the event object?
6
by: =?Utf-8?B?U2FtZWVrc2hh?= | last post by:
Hi, I want to write a simple .net program to open a URL, fill in fields, and click on a button to submit it using .net 1.1 framework. Can someone help in suggesting the libraries I should use?...
18
by: Csaba Gabor | last post by:
Is there a straightforward way of implementing a PHP equivalent to window.setTimeout? In a javascript web app, it's often the case that things are done on an event driven basis. For example,...
7
by: raids51 | last post by:
Hello, i have a program that downloads a file using the httpwebrequest/response, and it usually works, but sometimes it will freeze at a random part of the download without an error. here is the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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...

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.