gpt4 book ai didi

c# - 在 documentcompleted 事件之前禁用从 webbrowser 控件加载图像

转载 作者:太空狗 更新时间:2023-10-29 21:20:34 25 4
gpt4 key购买 nike

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

最佳答案

试试这段代码:

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

它更改注册表项。

关于c# - 在 documentcompleted 事件之前禁用从 webbrowser 控件加载图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2048424/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com