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

  • SEARCH
  • Home
  • 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 78479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:59:37+00:00 2026-05-10T20:59:37+00:00

I have a web page that is being displaying in a winform app using

  • 0

I have a web page that is being displaying in a winform app using the WebBrowser Control. I need to perform an event when the HTML in the web page changes; however, I cannot find an event that is triggered for situations when the pages is updated through Ajax. The DocumentComplete, FileDownloaded, and ProgressChanged events are not always triggered by Ajax requests. The only other way I can think to solve the issue is to poll the document object and look for changes; however, I don’t think that is a very good solution.

Is there another event I am missing that will be triggered on an ajax update or some other way to solve the problem?

I am using C# and .net 2.0

  • 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. 2026-05-10T20:59:38+00:00Added an answer on May 10, 2026 at 8:59 pm

    I have been using a a timer, and just watching for a change in a specific elements content.

    Private AJAXTimer As New Timer  Private Sub WaitHandler1(ByVal sender As Object, ByVal e As System.EventArgs)     'Confirm that your AJAX operation has completed.     Dim ProgressBar = Browser1.Document.All('progressBar')     If ProgressBar Is Nothing Then Exit Sub      If ProgressBar.Style.ToLower.Contains('display: none') Then         'Stop listening for ticks         AJAXTimer.Stop()          'Clear the handler for the tick event so you can reuse the timer.         RemoveHandler AJAXTimer.Tick, AddressOf CoveragesWait          'Do what you need to do to the page here...          'If you will wait for another AJAX event, then set a         'new handler for your Timer. If you are navigating the         'page, add a handler to WebBrowser.DocumentComplete     End If Exit Sub  Private Function InvokeMember(ByVal FieldName As String, ByVal methodName As String) As Boolean         Dim Field = Browser1.Document.GetElementById(FieldName)         If Field Is Nothing Then Return False          Field.InvokeMember(methodName)          Return True     End Function 

    I have 2 objects that get event handlers, the WebBrowser and the Timer. I rely mostly on the DocumentComplete event on the WebBrowser and the Tick event on the Timer.

    I write DocumentComplete or Tick handlers per action required, and each handler will usually RemoveHandler itself, so a successful event will only be handled once. I also have a procedure called RemoveHandlers that will remove all handlers from the browser and timer.

    My AJAX commands usually look like:

    AddHandler AJAXTimer.Tick, AddressOf WaitHandler1 InvokeMember('ContinueButton', 'click') AJAXTimer.Start 

    My Navigate commands like:

    AddHandler Browser1.DocumentComplete, AddressOf AddSocialDocComp Browser1.Navigate(NextURL) 'or InvokeMember('ControlName', 'click') if working on a form. 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 146k
  • Answers 146k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use the WSGI standard, through mod_wsgi. You don't have to… May 12, 2026 at 8:58 am
  • Editorial Team
    Editorial Team added an answer The save button is a well-known, comfortable UI feature that… May 12, 2026 at 8:58 am
  • Editorial Team
    Editorial Team added an answer You can't do counts by group in the inner queries,… May 12, 2026 at 8:58 am

Related Questions

We have a web application that manages inventory for our computer support group. One
Using ASP MVC and Entity Framework. In the view, you have a page declaration
I want my product, like every other web product out there, to pull a
I am retrieving a list of files from a web service and displaying them

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.