Wont that just replace the images after they load ? I dont want to download them at all so as to save on b/w and time
Main Topics
Browse All TopicsHey guys,
I have a webbrowser control which browses to a few sites.. I want to disable images from being loaded so that the connection is faster.. Not loading as in, it doesnt get loaded at all. Not just stop displaying them :)
I also want to know how to block specific domains like adserve
Thanks in advance ;)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
There are loads of people around who are trying to achieve what you want but there is no solution the way you want it. If you want to stop downloading images then you probably have to inherit the webbrowser control and modify the functionality. Otherwise, you can delete the src tag values inside all the img tags and the images would not be rendered. What you can do is to download the html code of the page using HTTPRequest object, delete all the src tags and then load that html into the webbrowser. This way, the images would not be downloaded!
An example of inheritance
http://www.codeproject.com
oops Sorry lol I am afraid I am a new member and cant afford 500 points :(
If it helps, you can try to solve this one :-
http://www.experts-excha
and get another 125 ;)
Business Accounts
Answer for Membership
by: Mortaza_doulatyPosted on 2009-08-17 at 22:44:02ID: 25120342
In DocumentLoaded event, put this code:
newHTML as String
Browser.Do cumentText = newHTML
origHTML = webBrowser.DocumentText
Dim
Dim regex as String = "<img.*/>"
newHTML = Regex.Replace(origHTML, regex, "", RegexOptions.Multiline)
web