Questions tagged [shdocvw]

provides the navigation, local caching and history functionalities for the browser.

MSDN

Shdocvw.dll turn hosts the Mshtml.dll component, as well as any other Active Document component (such as a Microsoft Office application) that can be loaded in place in the browser when the user navigates to a specific document type.

Shdocvw.dll supplies the functionality associated with navigation, in-place linking, favorites and history management, and PICS support. This DLL also exposes interfaces to its host to allow it to be hosted separately as an ActiveX control. The Shdocvw.dll component is more frequently referred to as the WebBrowser Control.

Internet Explorer

ShDocVw.dll provides the navigation, local caching and history functionalities for the browser.

Wine

shdocvw.dll provides API to view OLE documents. It is in fact the main DLL of Internet Explorer. Its most common use is WebBrowser control.

WebBrowser control allows an application to embed different documents. It is mostly used for HTML documents. WebBrowser checks the type of the document, creates its instance and views it. Note that HTML rendering has nothing to do with WebBrowser control, but it's done by the document object embedded in WebBrowser.

Further Information Links

MSDN

Wine Wiki

103 questions
2
votes
1 answer

c# specified cast is not valid while assigning mshtml.HTMLDocument.frames

I'm developing an IE BHO, While accessing frames in a html document i'm getting this error Here is the code. foreach (SHDocVw.InternetExplorer objExplorer in objShellWins) { if (objExplorer.Document is HTMLDocument) { objDocument =…
Narayan
  • 1,189
  • 6
  • 15
  • 33
2
votes
1 answer

How to get the iframe element in the parent document from the child document in a cross domain iframe?

I have this code that will do the opposite: gets the child document given an iframe element: var htmlWindow = (element as IHTMLFrameBase2).contentWindow; if (htmlWindow == null) return null; // Convert IHTMLWindow2 to IWebBrowser2 using…
Juan
  • 15,274
  • 23
  • 105
  • 187
2
votes
1 answer

Opening an Internet Explorer Windows with Exactly 3 Tabs in it

I'm working on a project with a coworker and we have been beating our heads over our desks trying to figure this one out. Our requirements are to have a new Internet Explorer browser pop up with one webpage and then append two tabs to it. We found…
user1827607
  • 21
  • 1
  • 2
2
votes
1 answer

Which of ieframe.dll or shdocvw.dll should be used as dependency?

If I am using a WebBrowser component I find that sometimes the compiler will create a dependency for ieframe.dll and other times for shdocvw.dll. Which should be used if targetting XP and Win 7?
CJ7
  • 22,579
  • 65
  • 193
  • 321
2
votes
0 answers

Handling the SHDocVw Window.closing event to close a form in C#

With a lot of digging I have managed to share session between my 2 forms with the SHDocVw.dll. I have a Main form and a Popup form, each contain a WebBrowser control. My question is : how can I handle the window.close javascript event to close the…
CptNapalm
  • 21
  • 2
2
votes
0 answers

SHDocVw.Internetexplorer behaves differently on navigation with ip-address or dns name

I'm currently writing a c# window forms application, that starts an instance of the internet explorer, navigates to a certain intranet page, fills out a form and submits that form. Here is some of the code: int state = 0; SHDocVw.InternetExplorer…
basilikum
  • 10,378
  • 5
  • 45
  • 58
1
vote
0 answers

COMException while accessing .NET WebBrowser (SHDocVw)

What is the reason for the following exception ? System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) It occurs when I make a COM call, trying to manipulate InternetExplorer in…
André Pontes
  • 447
  • 1
  • 4
  • 13
1
vote
0 answers

Determining when an IE window is displaying a dialog box from a desktop app

I am attempting to determine if a selected browser window is showing a dialog box. I am using the shdocvw.internetexplorer object to grab the browser and get specific elements of the browser. I am unable to determine if a dialog box is showing. I've…
mp42871
  • 191
  • 1
  • 5
  • 16
1
vote
2 answers

Control/Access an already open browser with vb form

Is there a way to have a desktop vb application take control of an already open browser window? For example, have it mouse click certain coordinates in the window or check if the window contains certain elements. I've looked at using Microsoft…
mp42871
  • 191
  • 1
  • 5
  • 16
1
vote
0 answers

In the wpf, I have the functionality to open the InternetExplorer using SHDocVw also to access the HTMLDocument. Need to have Microsoft Edge migration

I am currently working with wpf. In the wpf, I have the functionality to open the import 'bloc/splash_screen/splash_screen_bloc.dart'; using SHDocVw also to access the HTMLDocument of the IE browser. I need to migrate the functionality to open the…
1
vote
0 answers

WebBrowser detect a file download event

I want to develop Internet explorer add-on. I need to detect when user download file, But I didn't find a relevant event for that. in this link there is a list of events, but there is no event for user that begin to download file code example (took…
spez
  • 409
  • 8
  • 21
1
vote
1 answer

C# - mshtml and SHDocVw Complete Documentation

I'm not sure if this is a valid question here but I am having a hard time finding proper documentation for these 2 DLLs, mshtml and SHDocVw. I'm trying to do some automation using these 2 DLLs. To do that, I must read and understand first what…
1
vote
2 answers

Retrieving the "highest level frame" from SHDocVw WebBrowser control

The documentation for the DocumentComplete event mentions near the end: In the loading process, the highest level frame, which is not necessarily the top-level frame, fires the final DWebBrowserEvents2::DocumentComplete event. At this time,…
ide
  • 19,942
  • 5
  • 64
  • 106
1
vote
1 answer

clear browser session and cookies using c#

Hi I've created a new browser object by using InternetExplorer myie = new SHDocVw.InternetExplorer(); and I'm trying to navigate to one page some thing like myie.Navigate("https://myfirstsite.com/login.aspx", ref Empty, ref Empty, ref Empty, ref…
jestges
  • 3,686
  • 24
  • 59
  • 95
1
vote
0 answers

Failing while trying to read content from URL via InternetExplorer in C#

I have a strange behavior using InternetExplorer Object to read information from http sites: My Code so far: string url = "http://www.someURL.com" InternetExplorer IE = new InternetExplorer(); IE.Visible = true; IE.Navigate(url); while (IE.Busy ==…
Julian
  • 185
  • 1
  • 15