从WebBrowser控件禁用图像加载documentcompleted事件之前 [英] Disable image loading from webbrowser control before the documentcompleted event
本文介绍了从WebBrowser控件禁用图像加载documentcompleted事件之前的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在一个页面prevent图像被加载在 web浏览器
控制。我想它的 DocumentCompleted之前发生
事件发生。有没有办法做到这一点?
I want to prevent images in a page from being loaded in the WebBrowser
control. I want it to happen before the DocumentCompleted
event occurs. Is there a way to do this?
推荐答案
您可以设置的 DISPID_AMBIENT_DLCONTROL <一href="http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/d0235b98-e879-455a-82ca-a49596e27dfa"相对=nofollow>环境属性或改变浏览器的过程中的WinInet的会议使用一个可编程的代理服务器。
You can set the DISPID_AMBIENT_DLCONTROL ambient property or change the browser's process's WinInet session to use a programmable proxy.
这篇关于从WebBrowser控件禁用图像加载documentcompleted事件之前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文