0

我有应用程序,我无法修改它。此应用程序包含 IEControl(WebBrowser 控件),它显示一些 URL 并打开一些 txt 文件。如何获取 IWebBrowser2 并将此控件重定向到指定的 URL?例如,我需要将此控件重定向到http://stackoverflow.com每次尝试打开 txt 文件的控件?

4

1 回答 1

0

You can't do this without serious hacks that would be unsupported and rather fragile. You'd have to inject your code across the process boundary using any of a number of tricks, none of which are trivial.

Why would you want to do this?

于 2009-07-14T15:18:14.360 回答