In C# I have
Object htmlDoc = _webbrowser.Document;
and when I step through the code in debug mode, I have
htmlDoc = {mshtml.HTMLDocumentClass}
showing when I mouse over the Object htmlDoc
assignment.
But when I type this code in the IDE, HTMLDocument htmlDoc = new HTMLDocumentClass();
, Visual Studio does not recognize HTMLDocument
, nor does it recognize the HTMLDocumentClass
class.
I have included the namespace of System.Windows.Forms
and I give reference to the DLL of the same name and it is version 4.0.0.0 and runtime version v4.0.30319. I tried to add the namespace System.Windows.Brower
but the IDE did not recognize its existence. Why does the debugger seem to recognize the mshtml.HTMLDocumentClass
but the code itself does not recognize it?