IHtmlDocument2 vs HtmlDocument differences/issues

  • Thread starter Thread starter Wiktor Zychla
  • Start date Start date
W

Wiktor Zychla

Hello,

I need a concise explanation on following 3 related questions:

1. how these two interfaces are related: mshtml.HtmlDocument and
mshtml.IHtmlDocument2? they look almost equal.

2. what is the difference in casting webBrowser's Document property to
mshtml.HtmlDocument or mshtml.IHtmlDocument2 and calling common interface
members? does it only impact the performance or maybe different code is
executed?

3. why in rare cases the behaviour is not equivalent when calling the same
members on webBrowser's Document via mshtml.HtmlDocument vs
mshtml.IHtmlDocument2 (the most strange issue is the Undo/Redo not working
on mshtml.IHtmlDocument2 and perfectly working on mshtml.HtmlDocument)?

thanks in advance
Wiktor Zychla
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top