PDA

Click to See Complete Forum and Search --> : Disable Images in Webbrowser Control - how?


Jim_Hubbard
Dec 5th, 1999, 04:15 AM
I'd like to be able to diable images, movies, scripts etc, in a webbrowser control. Any ideas?

Okaria Dragon
Dec 5th, 1999, 05:00 AM
I don't believe it's possible to do that directly through the webbrowser control itself.

The only way to do that would be to edit the Internet Explorer registry values. I'm not certain where the ones your looking for exactly are, but my best guess would be HKEY_LOCAL_USER\Software\Microsoft\Internet Explorer\Settings (or in a key surrounding \Settings).

The only thing I would suggest is that, if you go this route, you have your app remember the values that were already there and then, upon it's closing, return them. I don't think your end users would be happy with having to reset their MSIE settings everytime they use your app. :)

Regards,
Evan Sims

vbsquare
Dec 6th, 1999, 12:26 AM
Last time I looked on the MS Visual Basic Owners Area samples page I saw that there was a sample that disabled the Webbrowser right click menu. Perhaps you could try looking into that for more help: http://msdn.microsoft.com/vbasic

------------------
"To the glory of God!"

Jim_Hubbard
Dec 6th, 1999, 12:55 AM
Thanks for your suggestions. I have opted to go with the inet control. It is MUCH faster than the webbrowser control, and, since my app's entire prupose is to download files as quickly and eficiently as possible, the inet control fits the bill very nicely.

Also, I am getting a pretty good HTML education while writing the parsing code.

Thanks again!