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

IE Downloadcomplete

P: 1
I am trying to detect when a web page has completely downloaded in Internet Explorer to trigger another event in 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.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.


Sep 6 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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