Questions tagged [microsoft.mshtml]

MSHTML (also known as Trident ) is a proprietary layout engine for the Microsoft Windows version of Internet Explorer, developed by Microsoft.

MSHTML (also known as Trident ) is a proprietary layout engine for the Microsoft Windows version of Internet Explorer, developed by Microsoft.

It was first introduced with the release of Internet Explorer version 4.0 in October 1997; it has been steadily upgraded and remains in use today. For versions 7 and 8 of Internet Explorer, Microsoft made significant changes to the Trident layout engine to improve compliance with web standards and add support for new technologies.

40 questions
5
votes
1 answer

mshtml.dll version is 8.0 and Microsoft.mshtml is 7.0

I'm a little confuse and maybe you can help me. I've the mshtml.dll (version 8.0) and the Microsoft.mshtml.dll (version 7.0) If I go to add a reference to my WPF project and try to add the mshtml.dll, it tells me that the reference has to be a valid…
Jayson
  • 51
  • 3
5
votes
3 answers

mshtml.HTMLDocument how to hide a dynamically created div with class attribute

I am trying to load a load a Webpage in C# WebBrowser control (WPF not WinForm). Along with other content the page has a image rotator that Dynamically creates two divs having same class to utilize the image rotating. In the LoadComplete event of…
marifrahman
  • 681
  • 2
  • 13
  • 31
5
votes
2 answers

Hooking the http/https protocol in IE causes GET requests to be sequential

I'm using the PassthruAPP method to hook into HTTP/HTTPS requests made by IE. It's working well for the most part, however I noticed a problem. Only one download thread is active at a time, normally IE uses two download threads. I can see two…
watsonmw
  • 321
  • 2
  • 13
4
votes
2 answers

Why doesn't MSHTML for .Net have querySelector and querySelectorAll, or where are they?

I want to use MSHTML [1] to access DOM in IE, but I have just found out that it lacks querySelector and querySelectorAll methods in HTML document classes, which will otherwise be very helpful to obtain elements within a document by CSS…
Dante May Code
  • 11,177
  • 9
  • 49
  • 81
4
votes
4 answers

In HTML parsing Get Attributes of a tag in Cpp using IHTMLDOMAttribute

please help i am doing a html parsing using MSHTML. My code for getting all attributes of a particular tag is like this void GetAttributes(MSHTML::IHTMLElementPtr pColumnInnerElement) { IHTMLDOMNode *pElemDN = NULL; LONG lACLength; …
999k
  • 6,257
  • 2
  • 29
  • 32
3
votes
0 answers

mshtml 8.0 and Microsoft.mshtml 7.0

I'm a little confuse and maybe you can help me. I've the mshtml.dll (version 8.0) and the Microsoft.mshtml.dll (version 7.0) If I go to add a reference to my WPF project and try to add the mshtml.dll, it tells me that the reference has to be a valid…
Jayson
  • 31
  • 2
3
votes
1 answer

Using Microsoft.MSHTML in a loop, memory leak

Hey, I am attempting to use the Microsoft.MSHTML (Version 7.0.3300.0) library to extract the body text from an HTML string. I've abstracted this functionality into a single helper method GetBody(string). When called in an infinite loop, the process…
NoizWaves
  • 2,650
  • 6
  • 28
  • 32
2
votes
1 answer

How to make SHDocVw.InternetExplorer fire events that get caught with JS addEventListener?

The following problems: I need to simulate a double-click on a div element. I need to use/handle MS Internet Explorer 11. I cannot change the source code of the target site. My solution so far: I use C# and SHDocVw.InternetExplorer and mshtml I…
2
votes
1 answer

How to obtain IServiceProvider and IMarkupServices from HTMLDocument (mshtml)

Im doing some test creating an instance of HTMLDocument this way: object[] pageText = { "

some text...

" }; var document = new HTMLDocumentClass(); var document2 = (IHTMLDocument2)document; document2.write(pageText); and need to get a…
nick2083
  • 1,953
  • 13
  • 16
2
votes
0 answers

MSHTML DLL very slow to load at startup

I have a fairly large VB.NET WinForms project which loaded fine until recently. I have no recollection of any major changes in the startup code and I can only think of recent VS2019 upgrades that may have had an impact on the dev environment. Here…
bruno
  • 68
  • 8
2
votes
0 answers

WinForms problem with mshtml and ie9

IE9 appears to have broken my mshtml com based WebBrower html editor in my 32-bit winforms .net 3.5 application. (It has to be set to 32-bit due to an activex USB device controller I have to use.) The bug is erratic - it doesn't happen on my system.…
P a u l
  • 7,805
  • 15
  • 59
  • 92
2
votes
2 answers

mshtml fireevent onchange not firing

I am unable to fire an "onchange" event in mshtml. Can you please tell me what I am doing wrong here. HTMLSelectElement element = (HTMLSelectElement)this.HTMLDocument.all.item(controlId, 0); IHTMLElement e = element as IHTMLElement; IHTMLDocument4…
Sumesh Kuttan
  • 1,333
  • 1
  • 17
  • 40
2
votes
1 answer

Use explorer.document as source HtmlDocument for HtmlAgilityPack

I want to use currently loaded webpage in internet explorer as HtmlDocument in HtmlAgilityPack. I am using explorer document through mshtml as COM object. mshtml.HTMLDocument doc = explorer.Document as mshtml.HTMLDocument; Then I've tried to…
2
votes
2 answers

Fire event with vba & InternetExplorer.Application to recalculate jquery form

I'm trying to gather data from different websites. Therefore i'm using excel vba and start an internet explorer. I'm able to fill out a normal form. But sometimes i have to fill out a dynamic form with a jquery script behind. The form will only…
user2929630
  • 51
  • 1
  • 1
  • 6
2
votes
0 answers

mshtml and CLS-compliance

I am witnessing some odd behaviour with mshtml and CLS-compliance. I have an assembly marked CLSCompliant(true). This assembly does not expose any types from mshtml publicly. I can make the code conform to CLS fairly easily, but several things seem…
Stephen Drew
  • 1,415
  • 19
  • 31
1
2 3