Wednesday, August 08, 2007
« Jake Showing Off | Main | Almost a month now with iPhone ShieldZon... »

Sounds really simple huh? I was creating a little tray application that did some screen scraping of HTML pages.

I ended up with a large string (scraped HTML data) that I needed to display on a Form.

This is what I came up with, use the WebBrowser control, but it does not take a string as input, I ddin't really want to save the string to a file on the disk.

   this.webBrowser1.Navigate("about:blank");
   HtmlDocument doc = this.webBrowser1.Document;
   doc.Write(strHtmlString);

Works like a charm. If this is a dumb way to do this, please comment and tell me a better way.