I am using vs2008 and I would like to disable image loading on my webbrowser control but I dont see any solution except for the WebBrowserEX which doesn't seem outside of .net 1.1.
Anyone know how to do this? Thanks!
I am using vs2008 and I would like to disable image loading on my webbrowser control but I dont see any solution except for the WebBrowserEX which doesn't seem outside of .net 1.1.
Anyone know how to do this? Thanks!
you should replace its tag , give the following code a try
var html = webBrowser.DocumentText;
var newOne = Regex.Replace(html, "<img.*/>", "", RegexOptions.Multiline);
webBrowser.DocumentText = newOne;