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

Home Posts Topics Members FAQ

DownloadComplet e

GS
is there such thing as DownloadComplet e for AxSHDocVw.AxWeb Browser?

and if there is, what is the name for the event object?
Sep 10 '06 #1
5 4039
GS,
is there such thing as DownloadComplet e for AxSHDocVw.AxWeb Browser?
You seems to be for me a funny guy.
I have given you the link to that yesterday.

Cor

"GS" <gs************ **********@msne ws.Nomail.comsc hreef in bericht
news:e6******** ******@TK2MSFTN GP04.phx.gbl...
is there such thing as DownloadComplet e for AxSHDocVw.AxWeb Browser?

and if there is, what is the name for the event object?


Sep 10 '06 #2
"GS" <gs************ **********@msne ws.Nomail.comsc hrieb:
is there such thing as DownloadComplet e for AxSHDocVw.AxWeb Browser?
Select the control in VS' text editor's left combobox and choose the event
from the combobox on the right top edge of the text editor.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 10 '06 #3
GS
not quite as smart programmaticall y as in younger days? maybe. However I did
see the link but could not get vb express to show anything close to
downloadcomplet e

after some further research, I end up doing
Public Event DownloadComplet e(ByVal sender As Object, ByVal e As EventArgs)
Private Sub webBrowser_Down loadComplete(By Val sender As Object, ByVal e As
EventArgs) Handles webBrowser.Down loadComplete
RaiseEvent DownloadComplet e(sender, e)

End Sub
However, I found out that does not work the way I want. Donwload Complete
fires mnaytimes, while the so call navigatecomplet e fires when the browser
may still be trying to render page. consequently that is not good enough
for my task.

"Cor Ligthert [MVP]" <no************ @planet.nlwrote in message
news:u0******** ******@TK2MSFTN GP06.phx.gbl...
GS,
is there such thing as DownloadComplet e for AxSHDocVw.AxWeb Browser?
You seems to be for me a funny guy.
I have given you the link to that yesterday.

Cor

"GS" <gs************ **********@msne ws.Nomail.comsc hreef in bericht
news:e6******** ******@TK2MSFTN GP04.phx.gbl...
is there such thing as DownloadComplet e for AxSHDocVw.AxWeb Browser?

and if there is, what is the name for the event object?


Sep 11 '06 #4
"GS" <gs************ **********@msne ws.Nomail.comsc hrieb:
However, I found out that does not work the way I want. Donwload Complete
fires mnaytimes, while the so call navigatecomplet e fires when the browser
may still be trying to render page. consequently that is not good enough
for my task.
What about this solution?

\\\
Private Sub WebBrowser1_Doc umentCompleted( _
ByVal sender As Object, _
ByVal e As WebBrowserDocum entCompletedEve ntArgs _
) Handles WebBrowser1.Doc umentCompleted
If Me.WebBrowser1. ReadyState = WebBrowserReady State.Complete Then
MsgBox("Documen t and frames loaded!")
End If
End Sub
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 11 '06 #5
GS
thank you for setting me on the right track.
Since I don't work directly with webbrowser control but the encapsulated
AxSHDocVw.DWebB rowserEvents2_D ocumentComplete Event as webOCWrapper
I had your idea added there.
Private Sub webBrowser_Docu mentComplete(By Val sender As Object, ByVal e
As AxSHDocVw.DWebB rowserEvents2_D ocumentComplete Event) Handles
webBrowser.Docu mentComplete
Try
doc = CType(webBrowse r.Document, MSHTML.HTMLDocu ment)
Catch
' Not a fatal error - we might be hosting a Word doc in-place,
' e.g.
End Try

' Bubble up to our host.
If Me.webBrowser.R eadyState = WebBrowserReady State.Complete Then
'MsgBox("Docume nt and frames loaded!")
RaiseEvent TopLevelDocumen tComplete(sende r, e)
End If

End Sub

and TopLevelDocumen tComplete was declared there as
TopLevelDocumen tComplete

Those accomplish what I need. thank you all again for all your patience.

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.atwrote in message
news:eh******** ******@TK2MSFTN GP06.phx.gbl...
"GS" <gs************ **********@msne ws.Nomail.comsc hrieb:
However, I found out that does not work the way I want. Donwload
Complete
fires mnaytimes, while the so call navigatecomplet e fires when the
browser
may still be trying to render page. consequently that is not good
enough
for my task.

What about this solution?

\\\
Private Sub WebBrowser1_Doc umentCompleted( _
ByVal sender As Object, _
ByVal e As WebBrowserDocum entCompletedEve ntArgs _
) Handles WebBrowser1.Doc umentCompleted
If Me.WebBrowser1. ReadyState = WebBrowserReady State.Complete Then
MsgBox("Documen t and frames loaded!")
End If
End Sub
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Sep 11 '06 #6

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

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
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...
0
1185
by: Davew01 | last post by:
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 =...
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,...
1
10320
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
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
9150
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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...
1
4299
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 we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.