bart k

bart k

  • NA
  • 1
  • 0

Problem with WebBrowser component - how to get html code - Windows Mobile 5.0

Mar 28 2006 5:58 PM

Hello!
I use in my mobile application the WebBrowser component to display html page. I want to get the source of a page so I use DocumentText property:
string sourcePage = webBrowser1.DocumentText;
but it does not work :
Error 1 The property or indexer 'System.Windows.Forms.WebBrowser.DocumentText' cannot be used in this context because it lacks the get accessor .
I tried to use System.Windows.Forms.HtmlDocument document =
this.webBrowser1.Document;
but it also does not work : Error 1 The type or namespace name 'HtmlDocument' does not exist in the namespace 'System.Windows.Forms' (are you missing an assembly reference?) .
I want to analyse the source of a page, any ideas?

Thanks...