Disable image loading from webbrowser control before the documentcompleted event

.net, c#, webbrowser-control

Solution

You can set the DISPID_AMBIENT_DLCONTROL ambient property or change the browser's process's WinInet session to use a programmable proxy.

Problem

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?

Original source