Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I'm making a Web browser in Vb.net and i want to have a setting that removes all the pictures from a site, and all the text if i now want to. Is it possible to do that? I'm making the web browser with the "WebBrowser" component.

Thanks for help.
Posted
Updated 1-Nov-10 3:33am
v2

1 solution

It's possible to do, but not using the webbrowser component. It'll download everything the web page tell it to.

You'd have to download the page using HttpRequest/Response, then scan the HTML for IMG tags, remove them, then send that page to the webbrowser control.

If you want to show nothing but the images, you'd again have to scan the downloaded HTML for the IMG tags, then write a new HTML page for the webbrowser control, putting in all of the found IMG tags.
 
Share this answer
 
Comments
euhiemf 4-Nov-10 12:44pm    
Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900