Cannot convert type 'System.Windows.Forms.HtmlDocument' to 'mshtml.HTMLDocument'
Hi forum!
i have a problem with this code :
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
HTMLDocument doc = new HTMLDocumentClass();
doc = (HTMLDocument) webBrowser1.Document;
}
in second line doc = (HTMLDocument) webBrowser1.Document the VS tell me : "Cannot convert type 'System.Windows.Forms.HtmlDocument' to 'mshtml.HTMLDocument'"
Can you help me?
Thanks
Massimo