【问题标题】:Disable image loading from webbrowser control before the documentcompleted event在 documentcompleted 事件之前禁用从 webbrowser 控件加载图像
【发布时间】:2010-01-12 11:13:01
【问题描述】:

我想防止在WebBrowser 控件中加载页面中的图像。我希望它在DocumentCompleted 事件发生之前发生。有没有办法做到这一点?

【问题讨论】:

    标签: c# .net webbrowser-control


    【解决方案1】:

    试试这个代码:

    RegistryKey RegKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Internet Explorer\Main", true);
    RegKey.SetValue("Display Inline Images", "no");
    

    它会更改注册表项。

    【讨论】:

    • 未经证实,我看到的是静止图像。但是我认为它们被缓存了。 “控制面板/Internet选项”,我删除了。
    【解决方案2】:

    【讨论】:

    • 请提供一个这样做的例子。
    猜你喜欢
    • 2012-09-05
    • 1970-01-01
    • 1970-01-01
    • 2012-05-30
    • 1970-01-01
    • 2012-08-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多