473,663 Members | 2,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wait until browser is finished loading

111 New Member
I'm programatically opening IE and i need my code to wait until the browser is finished loading before continuing. How do i make it wait?

i tried:

Expand|Select|Wrap|Line Numbers
  1. Do
  2. DoEvents
  3. Loop Until webBrowser1.Busy = False
but this doesnt work.

Any thoughts?
Oct 4 '07 #1
3 6443
Killer42
8,435 Recognized Expert Expert
I played with a webbrowser control some months back. I think I found that I had to wait until the document finished loading, not the browser. Check the doco, I think there's a property or event that indicates whether the document in the browser has completed.
Oct 5 '07 #2
Neekos
111 New Member
thanks - i found my answer. I'll post it here incase anyone else needs to reference it:

Expand|Select|Wrap|Line Numbers
  1. Do Until webBrowser1.ReadyState = READYSTATE_COMPLETE
  2.     DoEvents
  3. Loop
Oct 5 '07 #3
Killer42
8,435 Recognized Expert Expert
thanks - i found my answer...
Ok. Thanks for posting it, as it'll help anyone else who comes looking for the same info.

Quick question - does that work for cases such as the user (or a line glitch, etc.) interrupting the transfer? Or only when the document really "completes" .
Oct 6 '07 #4

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

Similar topics

4
9749
by: MFA | last post by:
Hi All I have one ASP page. During opening this page its taking some time to open as its has to process some asp code. I want to display some animated gif or text showing that page is loading or please wait...or some thing like that. I put image and text on top in file and then asp code but its not showing its only showing non asp part when its finishing the asp processing. I tried with response.buffer = false too. but no luck.
3
5797
by: Naomi | last post by:
hello Could anyone please tell me if there is any way i can have the text "Menu Loading Please Wait..." appear while the js menu loads and then disappear after it loads ? hoping to hear some advice on the matter Cheers Naomi
5
2535
by: Donius | last post by:
I am making some popup windows, and then trying to load content into them. It can be as few as two windows, and as many as 15 or so. I'm running into a problem where firefox cannot find the popupwindow.document.body after it loads. If i wait until the popups are all popped, and *then* try to write into them, the script can find more windows...but still can't get them all to find the document body element. It gives me the error "winbody...
4
9128
by: Stephajn Craig | last post by:
I have one page that may take a while to process on the server, and I'd like to implement a please wait message on this page when it posts back to the server and does its business. The page is an ASP.NET webform that contains a Web User Control. The Web User Control is doing all of the work posting. How can I inform the user of what is happening at the server while the data from this web user control is being processed? --
0
1456
by: Brian Rupert | last post by:
I'm running windows XP Pro SP2 with Visual Studio .net 2003. When I try to debug my ASP.net app, it goes into debug mode, but when I select Break All, I get this error message: Unable to break execution. Please wait until the debuggee has finished loading, then try again. Can someone tell me what I'm doing wrong? Thanks, Brian
12
5261
by: Perecli Manole | last post by:
I am having some strange thread synchronization problems that require me to better understand the intricacies of Monitor.Wait/Pulse. I have 3 threads. Thread 1 does a Monitor.Wait in a SyncLock block protecting a resource. Thread 2 and 3 also have a SyncLock block protecting the same resource and after executing some code in their blocks they both do a Monitor.Pulse to hand of the locked resource back to thread 1. While thread 1 has...
0
1301
by: the_kiddie98 | last post by:
Hi, I have a C# project which handles web requests to a server. On my local machine, I can usually attach to aspnet_wp once and debug file (hitting breakpoints), however if I stop and want to attach again I need to close the VS ide and start it again. If I don't do this I no breakpoints are hit and if I try to break execution, i get a message saying to "wait until the debugee has finished loading". I am trying to use remote debugging now...
6
10528
by: Eraser | last post by:
hi guys.... how i would now that the iframe loading of chart fx graph is completed... i used a window.print on page load with multiple iframes on the same page.... what happen is once the print option appears and print it... some of my pages are not yet completed loading the chart fx.... any help?
9
2105
by: jodleren | last post by:
Hi I have never done this before... but I could use it now. How do I create a "please wait" page, which will "reload" once my real page is ready? I am talking of a waiting time of some 10-20 secs, but can be worse.... still even 10 secs I'd like something telling the user, that data is being processed.
0
8436
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
8858
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
8771
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...
1
8548
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
7371
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
4182
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
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
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
2000
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.