Resolved Consume custom events

rakit

Member
Joined
Jul 24, 2020
Messages
8
Programming Experience
Beginner
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

C#:
<span id='text'>Text</span>
Event
C#:
OnTextElementChanged()

Thread
C#:
while(true)
  // check if element text changed
  if(text != oldText)
      OnTextElementChanged();
 
Second best seems to win a lot in technology: BetaMax vs. VHS, HD DVD vs BluRay, IBM PC vs. PC Clones
 
Back
Top Bottom