mshtml

mshtml.HTMLDocumentClass in C#

十年热恋 提交于 2019-12-07 23:08:32
问题 In C#, I managed to get the entire HTMLDocumentClass from an InternetExplorer object (navigating to a certain URL). However, in Visual Studio 2008's debug mode, the content of this HTMLDocumentClass for this particular URL is MASSIVE, including attributes like activeElement, alinkColor, all, applets, charset, childNodes, etc, etc ,etc. There's a button in that page that I want the to change to "Clicked". But I have no idea how to find the name/id/tag of that button. There's a simple tutorial

Why is the Webbrowser control DocumentComplete event fired for top level frame first?

一笑奈何 提交于 2019-12-07 13:32:06
问题 Based on this article on MSDN: How To Determine When a Page Is Done Loading in WebBrowser Control, and from past discussions on StackOverflow, I would assume that in case of a document with multiple frames, the DocumentComplete event would fire multiple times, and the last time would be for the top level frame. However, using the exact sample code from the above-mentioned MSDN link, I find that if there are multiple DocumentComplete events when doing a Navigate to a URL, the condition is

mshtml 8.0 and Microsoft.mshtml 7.0

安稳与你 提交于 2019-12-07 12:37:05
问题 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 assembly or com component. And that's right as I know I have to add a reference to Microsoft.mshtml.dll because it's mshtml.dll's wrapper, am I right? Now, my mshtml.dll version is 8.0 and Microsoft.mshtml is 7.0. Where can I found the 8.0 version

Do the new NoPIA and Type Equivalence features in C#/.NET 4.0 mean Microsoft.mshtml.dll is no longer needed

安稳与你 提交于 2019-12-07 11:40:30
问题 I'm maintaining a WPF based application which contains a WinForms based WebBrowser control that based on the IE web browser control. When we deploy, we have had to also supply Microsoft.mshtml.dll and do some custom configuration stuff for our ClickOnce publishing process as well in order to get things to work. I'm curious that with the new NoPIA and Type Equivalence features and dynamic type capabilities in C# 4.0 can we expect that if we upgrade that we can remove the dependencies on the

Not getting event arguments in IHTMLElement event handler

孤者浪人 提交于 2019-12-07 10:57:09
问题 I've added a callback to an IHTMLElement instance but when the IDispatch::Invoke is called for the event, there are never any arguments (i.e. the pDispParams->cArgs and pDispParams->cNamedArgs are always 0). For example, I add a callback for an onmouseup event. From what I can tell, a callback for this event is supposed to receive a MouseEvent object. Is that correct? If so, what do I need to do to ensure this happens? This is using the MSHTML for IE 6 sp2 (or better) on Windows XP SP2. 回答1:

Delphi TChromium / DCEF3 - Constant Access Violations

人盡茶涼 提交于 2019-12-06 12:37:27
问题 I'm trying to use DCEF3 TChromium as a replacement for TWebbrowser component. I downloaded the packages and installed it on my IDE (Delphi 2007). I'm testing the demo on demos\guiclient and when i try to open certain web pages, i get tons of Access Violation exceptions and my app crashes. If i'm inside Delphi, i get this exception before Delphi itself crashes : 'Assertion failure : 'item.src' in \win32scr\DBKIMPL.CPP' at line 2691' One example of a page that has this problem is www

mshtml.HTMLDocumentClass in C#

醉酒当歌 提交于 2019-12-06 05:29:06
In C#, I managed to get the entire HTMLDocumentClass from an InternetExplorer object (navigating to a certain URL). However, in Visual Studio 2008's debug mode, the content of this HTMLDocumentClass for this particular URL is MASSIVE, including attributes like activeElement, alinkColor, all, applets, charset, childNodes, etc, etc ,etc. There's a button in that page that I want the to change to "Clicked". But I have no idea how to find the name/id/tag of that button. There's a simple tutorial that uses statements like : HTMLInputElement button = (HTMLInputElement)theDoc.getElementById("Button1"

Is there an event that fires when DOM is modified in MSHTML IE8?

落爺英雄遲暮 提交于 2019-12-06 02:13:30
问题 Trying to detect if new elements are added or removed from the DOM in MSHTML. Is there such event that will fire? http://msdn.microsoft.com/en-us/library/aa741877(v=VS.85).aspx In IE9 there is IDOMMutationEvent::initMutationEvent http://msdn.microsoft.com/en-us/library/ff975905(v=vs.85).aspx 回答1: Yes, it is possible now in IE8, though it is not part of the MSHTML event structure, but Accessibility. Trigger (EVENT_OBJECT_REORDER) is new in IE8 - See http://blogs.msdn.com/b/ie/archive/2008/12

mshtml 8.0 and Microsoft.mshtml 7.0

对着背影说爱祢 提交于 2019-12-06 00:06:29
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 assembly or com component. And that's right as I know I have to add a reference to Microsoft.mshtml.dll because it's mshtml.dll's wrapper, am I right? Now, my mshtml.dll version is 8.0 and Microsoft.mshtml is 7.0. Where can I found the 8.0 version of Microsoft.mshtml.dll? If I add the 7.0 of the Microsoft.mshtml.dll it'll run the functions of the

Why is the Webbrowser control DocumentComplete event fired for top level frame first?

一笑奈何 提交于 2019-12-05 21:47:47
Based on this article on MSDN: How To Determine When a Page Is Done Loading in WebBrowser Control , and from past discussions on StackOverflow, I would assume that in case of a document with multiple frames, the DocumentComplete event would fire multiple times, and the last time would be for the top level frame. However, using the exact sample code from the above-mentioned MSDN link, I find that if there are multiple DocumentComplete events when doing a Navigate to a URL, the condition is satisfied in the following code the first time, not the last time as the article seems to indicate.