views:

259

answers:

4

Just loading html without images?

A: 

One way is to edit the HTML to remove the tags.

Chris Thornton
your suggestion is only possible with your own html files, not with a website. I think he means from websites.
Cesar Romero
@Cesar - you can get the HTML text, edit it to remove the tags, save to a file, then call webbrowser1.navigate(TempFileName, flags, flags, flags, flags);It's pretty ugly though, but it will work.
Chris Thornton
Given that the web browser control can be set not to load images attempting to change the source html is just a lame workaround, not a good programming technique. Moreover when set so the brwoser will show images placeholders - removing or disabling the tags will change the whole page layout.
ldsandon
@lsandon - agreed, it's not a great approach. I just tossed it out as a possible way of doing it.
Chris Thornton
+2  A: 

Use TEmbeddedWB instead of TWebBrowser, and you can do that easily by change the DLCTL_DLIMAGES option to false

Mohammed Nasman
A: 

Goto:

Tools > Internet options > Advanced Tab > Under Multimedia untick Show Pictures

waqasahmed
A: 

Here MSDN explains how to customize the web browser control: http://msdn.microsoft.com/en-us/library/aa770041(VS.85).aspx

If you're using Delphi, as Nasman said, TEmbeddedWB is a much more and updated wrapper of the web browser control.

ldsandon