JaedenRuiner 0 Newbie Poster

Okay,

I'm doing a bunch of DOM processing, which means I need to have HtmlDocument's created from a web address. However, the only way i know how to load an HtmlDocument is with a WebBrowser component, which i create in the background, add a DocumentCompleted() handler. When the object is created it tells the webbrowser to navigate to a page, and I listen for when the Document is loaded and then process the HtmlDocument. However this hasn't been very accurate, or functional. Sometimes the document is loaded and sometimes it never finishes. This is rather disparaging. Is there a way i can just call a function:

dim x as HtmlDocument = LoadHTMLDocument(Url)

and then proceed with X?

thanks
Jaeden "Sifo Dyas" al'Raec Ruiner

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.