473,465 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Web Browser Object Question

Hi,
I'm working with VS 2005.

I'm using a WebBrowser object that has an even called DocumentCompleted.
The thing is this even is called whenever a frame of the page has been
completed and I want it to be only when the entire page is downloaded.

Any ideas?
Thanks in advance.
Kfir.
Mar 30 '06 #1
2 1141
You can query the ReadyState property of WebBrowser on each
"DocumentCompleted" event.

--
Abhijeet Dev

"Kfir Marouani" <kf***@flashnetworks.com> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
Hi,
I'm working with VS 2005.

I'm using a WebBrowser object that has an even called DocumentCompleted.
The thing is this even is called whenever a frame of the page has been
completed and I want it to be only when the entire page is downloaded.

Any ideas?
Thanks in advance.
Kfir.

Mar 30 '06 #2
Thanks. It seems to work.

Althought there are still some sites that are splited so it "thinks" the
same page is two pages.

"Abhijeet Dev" <ms****@abhijeet-dev.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
You can query the ReadyState property of WebBrowser on each
"DocumentCompleted" event.

--
Abhijeet Dev

"Kfir Marouani" <kf***@flashnetworks.com> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
Hi,
I'm working with VS 2005.

I'm using a WebBrowser object that has an even called DocumentCompleted.
The thing is this even is called whenever a frame of the page has been
completed and I want it to be only when the entire page is downloaded.

Any ideas?
Thanks in advance.
Kfir.


Mar 30 '06 #3

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

Similar topics

8
by: R. Smits | last post by:
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried...
7
by: someone | last post by:
Let's say I have a Session timeout of 20 minutes. If the browser periodically request a graphic file, will that keep its Session alive? What keeps the Session alive? Is it the Session cookie that...
4
by: cr113 | last post by:
I can't seem to make sense out of the Object Browser in VB.NET. Here's one example. I often use the the Sleep method found in the Thread object like this: Imports System.Threading Private...
16
by: petermichaux | last post by:
Hi, Does anyone have a a cross-browser setOpacity function that does not use browser sniffing? I looked at the Yahoo! UI function and it detects IE by looking for window.ActiveXObject. I also...
10
by: Conrad Lender | last post by:
In a recent thread in this group, I said that in some cases object detection and feature tests weren't sufficient in the development of cross-browser applications, and that there were situations...
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
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
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,...
0
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...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.