0

I have an application that takes links from a web page (10 links) and loads each link in a web browser control and when page loads, main form sends an event (from webbrowser_DocumentCompleted) to a class with a html of a loaded page to do the parsing.
I have to pass the messages between main form and the class to notify the class when the html is ready and the class can do its thing.

I am using thread to call the function that takes each link and use AutoResetEvent to wait until the page is loaded so I can move to the next link.

Is there any other (better) way to do this? It is .NET 2.0.

Thanks!

noseratio
  • 59,932
  • 34
  • 208
  • 486
Codesmell
  • 379
  • 1
  • 4
  • 22

0 Answers0