Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6718497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:58:35+00:00 2026-05-26T08:58:35+00:00

I have a webbrowser object. It is doing a lot of work so very

  • 0

I have a webbrowser object.
It is doing a lot of work so very often I run into a problem where objects are not loaded yet, or new request was not yet complete, etc.

So for now I’m using something like this:

Thread.Sleep(n);
while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
{
Application.DoEvents();
}
// do stuff here

But as already mentioned, I don’t like it. It is pretty unreliable. Plus the thread gets frozen.

I’m sure I’ve seen somewhere in internet something like DownloadCompleteHandler (not sure about the name), which was starting the process of downloading the page asynchronously, and after it is finished – I could call another handler to tell it what to do next.

But I can’t find it again.
Would be great if someone can help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:58:35+00:00Added an answer on May 26, 2026 at 8:58 am

    I think you’re looking for the DocumentCompleted event.

    The Navigated event is called when the page has been navigated to and has started loading, the DocumentCompleted event is called when the page has finished loading.

    Edit

    In response to your comment on your question; you’re looking for the ProgressChanged event.

    In fact it’d be easier if you just read through the WebBrowser documentation on MSDN. On this page there’s a section for ‘Events’, which lists all of them and what they are used for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application that loads some javascript into a WebBrowser object. To prevent
I got a VERY weird problem happening with ALL my DocumentCompleteEventHandlers. Say I have
I have a WPF WebBrowser object in my application in which I am trying
I have a webbrowser object on a winform that I would like to use
I have created a WebBrowser object and would like to know how to block
What am I doing wrong? I have application, which run normally, but when I
I have a WebBrowser object in a WPF Page and I'm trying to do
I have a C# Form with WebBrowser object. This object contains HTML Document. And
I have an object array that i'm returning to use the objects in a
I have a slider and a webbrowser object in my form and sliding it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.