Currently, I've been using Winforms - Thread() to trigger custom events, however, I don't know if it's the best way to achieve the result
Let's suppose that I want to check if the text of the element was changed using a webbrowser ... how can I fire the event without using a thread to check if the text was changed?
Page
Event
Thread
Let's suppose that I want to check if the text of the element was changed using a webbrowser ... how can I fire the event without using a thread to check if the text was changed?
Page
C#:
<span id='text'>Text</span>
C#:
OnTextElementChanged()
Thread
C#:
while(true)
// check if element text changed
if(text != oldText)
OnTextElementChanged();