P
Paul Hemans
I am very new at .Net. I have a small project where I need to manipulate the
contents of a web page.
I have a form with a web browser control (webBrowser1) on it. Within the
webBrowser1_DocumentCompleted method I have the following code.
mshtml.HTMLDocument oDoc = new HTMLDocumentClass();
oDoc = (mshtml.HTMLDocument)webBrowser1.Document;
This is generating the error:
C:\learning\c#\myProject\myProject\Form1.cs(53,24): error CS0030: Cannot
convert type 'System.Windows.Forms.HtmlDocument' to 'mshtml.HTMLDocument'
Can you give me any ideas on what I am doing wrong?
contents of a web page.
I have a form with a web browser control (webBrowser1) on it. Within the
webBrowser1_DocumentCompleted method I have the following code.
mshtml.HTMLDocument oDoc = new HTMLDocumentClass();
oDoc = (mshtml.HTMLDocument)webBrowser1.Document;
This is generating the error:
C:\learning\c#\myProject\myProject\Form1.cs(53,24): error CS0030: Cannot
convert type 'System.Windows.Forms.HtmlDocument' to 'mshtml.HTMLDocument'
Can you give me any ideas on what I am doing wrong?