How to redirect another application's WebBrowser control

I have an application and I cannot change it. This app contains an IEControl (WebBrowser control) that displays some urls and opens some text files. How can I get IWebBrowser2 and redirect this control to the specified URL? For example, I need to redirect this control to /qaru.site / ... every time you try to open a txt file?

0


source to share


1 answer


You cannot do this without some serious hacks that are unsupported and quite fragile. You will have to inject code across the process boundary using any of the tricks, none of which are trivial.



Why do you need this?

0


source







All Articles