Questions tagged [mshtml]

MSHTML was introduced in Microsoft Internet Explorer 4.0. It is the main HTML component of the Internet Explorer browser and can be used in other applications. It hosts Microsoft ActiveX Controls and supports the OLE Control '96 (OC96) specification for windowless controls.

MSHTML frequently comes into play when a WPF or WinForms application hosts a web browser control. To access MSHTML, the 'Add Reference' dialog is used as shown in the figure below...

Locating the MSHTML assembly

Reference articles for MSHTML can be found here

444 questions
0
votes
1 answer

Reinstalled Windows lost access to mshtml.dll

I had to reinstall Windows 7 (x64) due to a crashed disk. When I reopened the project i was working on, and tried to compile it, I got the following error: Unable to find source file 'C:\Program Files\Microsoft.NET\Primary Interop…
Chiwda
  • 1,233
  • 7
  • 30
  • 52
0
votes
1 answer

Does the ID's of DOM change from browser to browser?

In C#, I am using the mshtml.HTMLDocument to retrieve various elements from a page. For example: button = (mshtml.HTMLButtonElement)theDoc.getElementById("ID1"); Now, if I am running IE6,IE7,IE8, will "ID1" change depending on browser version?
Saobi
  • 16,121
  • 29
  • 71
  • 81
0
votes
1 answer

Accessing DOM elements in C#

I am using the mshtml namespace to access DOM elements as returned by a COM Browser object. My code is roughly as follows object missing = Type.Missing; ie.Navigate("http://website.com", ref missing, ref missing, ref missing, ref…
Saobi
  • 16,121
  • 29
  • 71
  • 81
-1
votes
1 answer

document.readystate throwing COMException

I am working on a mshtml C# IE 11 automation based project, when I log in to the website and check the readystate property of the document, it throws a COMException. The same code works for IE 8 without any issue: while (document.readyState !=…
Zameer Ansari
  • 28,977
  • 24
  • 140
  • 219
-1
votes
1 answer

How to get the page source from an IE window?

I need to parse the page source as rendered by IE. I can use the following simple code to open an IE to a URL. (The BrowserWinodw type is from the Visual Studio Coded UI test framework.) BrowserWindow bw = BrowserWindow.Launch(url); How to get the…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
-2
votes
3 answers

IE Automation Book or Resource?? using MSHTML/ShDocVw VB.Net

Can anyone recommend a book or a website that explains Internet Explorer Automation using VB.NET? I understand that mshtml and ShDocVw.dll can do this, but I need a resource that will explain it to me. I want to read/write values as well as click…
unknown (yahoo)
-2
votes
2 answers

Where can I find the list of interfaces supported by the WPF WebBrowser.Document from C#?

Where can I find the list of interfaces supported by the WPF WebBrowser.Document (namespace system.windows.controls) from C#? Moreover, where can I find the official documentation from Microsoft web site? The document from MS…
palazzo train
  • 3,229
  • 1
  • 19
  • 40
-3
votes
1 answer

How to trigger jquery ".change" event on dropdown select programatically c#

I'm trying to automate html events using c#. I have html dropdown and on change of its value it shows/hides specific divs. Below is sample HTML code.