I need a way for my VB.NET application to connect to and automate a running instance of Internet Explorer.? I believe that the way to do this is to have a helper BHO running inside IE that registers itself in the Running Object Table and that exposes the IWebBrowser interface.? My application would then see the BHO in the ROT and would connect to it that way.
Therefore, the deliverables will? include:
- The helper BHO compiled? as a DLL
- Source code
- Instructions for installing the BHO on a user's computer and setting it up in Internet Explorer (an installer is not required, as it will likely be included in my application's installer)
- Instructions for using the BHO from my VB.NET application
Of course, if you have a better way to automate a running instance of Internet Explorer, then by all means share your idea.
- If the user has multiple instances of IE running, each one should have an entry in the ROT.? They will have to be differentiated somehow (possibly using each browser's HWND).
- In IE7, the ROT entry for the browser must reflect the active tab (assuming the user has multiple tabs open).
- There will be no UI.
- It is very important that your delivered solution be very solid and not destabilize the user's browser in any way.? This is more important to me than the deadline (if it comes to that).
Please contact me if you have any questions.