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

Using HTMLDocument to manipulate HTML and show it in WebBrowser-control

I am trying to manipulate a requested document in the WPF WebBrowser-control. I already managed it to invoke JavaScript on loaded document, but I am not able to change the shown HTML-code in the control itself. My (very simplified) code in the…
lakai
  • 209
  • 1
  • 4
  • 14
0
votes
0 answers

Independent Delphi TWebbrowser on IE8 on any OS where any local IE

So, it's not easy question ((( it's much time was gone, but I haven't get answer. The TWebbrowser component working in any OS Windows, but dependent on IE version on this OS. I want decide it by attaching only IE 8 version to my Delphi 7 project and…
Melbis
  • 87
  • 10
0
votes
1 answer

C#: How to set the value of an mshtml.HTMLInputFileElement

I am currently working on a project that needs to be able to set the value of an input element of type "file" in an HTML document using mshtml.HTMLInputFileElement. I am having a great deal of difficulty doing this. First I tried…
B Sharp
  • 477
  • 8
  • 16
0
votes
1 answer

Using the right version of an assembly in this case MSHTML in my project and for deployment

In my VS2012 project with Internet Explorer 10 installed if I add a reference by going to the COM references and choose MSHTML then it gives me the version that is installed in the GAC which is an old 7.0.3300.0. If I actually look in system32 or…
darbid
  • 2,545
  • 23
  • 55
0
votes
1 answer

How to convert IHTMLImgElement to image

I am automating Internet Explorer using SHDocVW.dll and MSHTML with C#, and I wish to save an image from the page to the disk (JPEG format). I can't use the WebClient class to download the image; if I do it, I end up downloading the site's login…
0
votes
0 answers

Show HTML5 Dialog In Delphi

I'm currently using the ShowHTMLDialog that in MSHTML.DLL to display a html document embedded in my application as a modal dialogue. This all work OK but I would like to be able to have better looking dialogues so am trying to move to HTML5, I have…
Shaun07776
  • 1,052
  • 1
  • 10
  • 16
0
votes
1 answer

iframe innerHTML visible in browser, however is null in code

I'm trying to access an iframe on a website using mshtml. I can see the innerHTML in the website's frame in browser. I can also access the "DIV" within iframe from code. The document is properly loaded as well. The iframe also belongs to the…
Zameer Ansari
  • 28,977
  • 24
  • 140
  • 219
0
votes
1 answer

How to access a dynamic control in mshtml created through javascript

How to access a dynamic control in mshtml created through javascript. I have a Yes/No radio button. On selecting Yes, a textbox is dynamically created and added next to this radio button. I am able to access the radio button using…
Sumesh Kuttan
  • 1,333
  • 1
  • 17
  • 40
0
votes
0 answers

WPF application to complete JQuery element of a website

I'm trying to create a WPF application that loads a webpage, auto-completes a series of fields, and then submits. To do this, I've followed Microsoft's guide here: https://code.msdn.microsoft.com/windowsdesktop/WPF-Automation-Loading-6ae6c88a This…
Cameron
  • 229
  • 1
  • 5
  • 17
0
votes
2 answers

How can I dynamically set the path of a DataTrigger XAML

I have several buttons which will be sharing a common style and they all will have DataTriggers based on a bound property. I am trying to avoid writing out each datatrigger for each button, so I would like to know if there is a way to dynamically…
Carson
  • 1,169
  • 13
  • 36
0
votes
0 answers

What can be done to improve IHTMLDOMAttribute cast performance?

I'm trying to sanitize/modify the html tree by building the mshtml DOM and then traversing it. The problem is, it takes a very long time to do so, up to 3-4 seconds for a standart twitter newsletter or something on par with that. After the profiling…
Anatoly Sazanov
  • 1,814
  • 2
  • 14
  • 24
0
votes
3 answers

Setting HTML Text Element value

In a C# WPF program I'am trying to set the value of a HTML Text element which is defined: I tried the following: mshtml.HTMLDocument doc =…
Gpx
  • 653
  • 9
  • 17
0
votes
1 answer

How to Fire __dopastback() in Winform's Webbrowser Control

I am trying to manipulate html of a url in WinForms for automation purpose, On the webpage there is an anchor tag: 2 How can I fire __dopostback() automatically?? I tried…
Saurabh Sashank
  • 280
  • 1
  • 5
  • 18
0
votes
1 answer

What is the different between HTMLDocumentEvents and HTMLDocumentEvents2?

What is the different between HTMLDocumentEvents and HTMLDocumentEvents2 of mshtml ?
palazzo train
  • 3,229
  • 1
  • 19
  • 40