Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Cannot convert type 'System.Windows.Forms.HtmlDocument' to 'mshtml.HTMLDocument'
Massimo
Jul 10 2009 12:21 PM
11.7k
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
code for convert string to ascii values
WinForm on diffenet screen resolution