Watcher Thread

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • atn2002@hotmail.com

    Watcher Thread

    I have the ActiveX IE WebBrowser embedded in my application.

    There is javascript which runs inside the WebBrowser which changes the
    'id' of the 'body' (document.body. id) when something on the page is
    selected.

    I want to be able to detect when the 'id' changes from with my c#
    application and fire an event. I have tried things like
    'onpropertychan ge' from within c# but nothing has met my needs
    reliably.

    My initial idea is to have a background thread which constantly checks
    the 'document.body. id' for changes, and when detected, invoks an event.

    My question is if there's a method already available in the .NET
    framework which will watch a property like this without me having to
    manage extra threads myself?

Working...