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?
Asked
Active
Viewed 1.0k times
6

Sam
- 7,252
- 16
- 46
- 65

Jepe d Hepe
- 899
- 5
- 22
- 42
2 Answers
8
Try this code:
RegistryKey RegKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Internet Explorer\Main", true);
RegKey.SetValue("Display Inline Images", "no");
It changes registry key.

jaPawel
- 2,645
- 1
- 20
- 13
-
unconfirmed, I was seeing images still. however I think they were cached. "Control Panel / Internet Options", delete I did. – Valamas Nov 16 '17 at 02:37
1
You can set the DISPID_AMBIENT_DLCONTROL ambient property or change the browser's process's WinInet session to use a programmable proxy.

Sheng Jiang 蒋晟
- 15,125
- 2
- 28
- 46