[英]How to Restart IE WebBrowser Control in C#
Basically I've figured out how to pro grammatically change proxies, but now I want my WebBrowser to use the new proxy. 基本上,我已经找到了如何在语法上更改代理的方法,但是现在我希望WebBrowser使用新的代理。 To do that I presume I need to restart IE, and by extension, the IE based WebBrowser control in my C# application.
为此,我想我需要重新启动IE,并重新启动C#应用程序中基于IE的WebBrowser控件。 How can I do this?
我怎样才能做到这一点?
Given that you are using the WebBrowser Control in your C# application then you cannot do something like restarting IE, because its control you are using in your application. 假设您在C#应用程序中使用WebBrowser控件,那么您将无法执行诸如重新启动IE之类的操作,因为您正在应用程序中使用它的控件。
But how about reloading the Webbrowser control may be a new instance, hope this might help you 但是如何重新加载Webbrowser控件可能是一个新实例,希望对您有所帮助
WebBrowser and Internet Explorer use common proxy settings in the system. WebBrowser和Internet Explorer在系统中使用通用的代理设置。 You do not need to restart WebBrowser or IE- as soon as proxies changed, it will be used.
代理更改后,无需立即重新启动WebBrowser或IE-,即可使用它。 If you change the proxy settings in WebBrowser, they will immediately apply in IE, and vice versa.
如果您在WebBrowser中更改代理设置,则它们将立即应用于IE,反之亦然。 I hope I have correctly understood the question.
我希望我已经正确理解了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.