473,804 Members | 4,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE Downloadcomplet e

1 New Member
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.na viagated" as shown below:



Private Sub webBrowser1_Nav igated(ByVal sender As Object, ByVal e As WebBrowserNavig atedEventArgs) Handles WebBrowser1.Nav igated

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 OpenDirecTVWebB utton_Click(ByV al sender As System.Object, ByVal e As System.EventArg s) Handles OpenDirecTVWebB utton.Click

Dim objIE As SHDocVw.Interne tExplorer

Dim objShellWins As SHDocVw.ShellWi ndows

objShellWins = New SHDocVw.ShellWi ndows

objIE = CreateObject("I nternetExplorer .Application")

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

objIE.Visible = True

Textbox1.Text = objIE.LocationU RL

End Sub



I cannot seem to get IE "downloadcomple te" 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 1185

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

Similar topics

1
21317
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 WebBrowser.ReadyState = STATE_COMPLETE (or something like that. I don't have the code in front of me) But, for some reason, occasionally the code continues past the loops even
0
1287
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 page will not load into the control. On most occasions it is fine, but when it happens we simply get the progress event pinging us infinitely. I have included an event trace of two page loads. One that worked and one that doesn't. As you can...
1
1862
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 next task is to put it in a loop so that I can retrieve multiple pages of data. My problem is that how can I control the loop such that it won't try and get the next page of data until the previous one has completed - bearing in mind that I have...
2
1193
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 Option Strict On
12
4459
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 this...Could someone please convert this to VB.NET to give us a glimmer of hope OR provide a solution. If u implement axWebBrowser, you'll find the WindowClosing event doesn't
5
4039
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
6142
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? I tried using javascript, however, I am not able to make javascript wait for the page to completely load, before trying to access and fill fields on the page. Hence resorted to .net, but not finding the right library to use.
18
15931
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, html elements might have things like onclick="buttonClicked()" to indicate that the function buttonClicked should be run when that element is clicked. The analogue can be done in PHP (on Windows) using com_event_sink. In other words, you can...
7
7789
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 code: 'Creating the request and getting the response Dim theResponse As HttpWebResponse Dim theRequest As HttpWebRequest Try 'Checks if the file exist theRequest = WebRequest.Create(Me.Filelocation) ...
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10577
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10077
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5521
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.