I want the images on the page not to load into the WebBrowser . I want this to happen before the DocumentCompleted event. Is there any way to do this?
WebBrowser
DocumentCompleted
You can set the DISPID_AMBIENT_DLCONTROL environment or change the WinInet session in the browser to use a programmable proxy.
Try this code:
RegistryKey RegKey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Internet Explorer\Main", true); RegKey.SetValue("Display Inline Images", "no");
It modifies the registry key.