|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Disable loading of images in WebBrowser controlOn Jun 10, 10:06 am, Jeff Caton <j.ca...@gmailnotspam.com> wrote:
> Hello! There's no built-in method or property do disable images from being> How can I disable loading images in the webbrowser control? loaded in webbrowser control which relies on IE. And modifying "src" attribute of "img" tag may not be enough as the images may come from dynamically from different servers. So, another solution can be tweaking registry to disable images from being loaded, note that this setting also effects regular Internet Explorer. So, you may re-set it to False as follows: ' Set Display Inline Images value to false Dim regkey As Microsoft.Win32.RegistryKey = _ My.Computer.Registry.CurrentUser regkey.OpenSubKey("Software\Microsoft\Internet Explorer\Main", _ True).SetValue("Display Inline Images", "no") Keep in mind that writing to registry requires administrative rights. HTH, Onur Güzel "Onur Güzel" <kimiraikkone***@gmail.com> ha scritto nel messaggio what about a 2 pass procedure?news:2c54ce94-24a0-40e6-acce-ade268dce7a5@y4g2000yqy.googlegroups.com... > On Jun 10, 10:06 am, Jeff Caton <j.ca...@gmailnotspam.com> wrote: >> Hello! >> How can I disable loading images in the webbrowser control? > u load the html page using webclient, then you can remove all the unwanted tags , then you load the code into a webbrowser control :) On Jun 10, 6:11 pm, "redbull" <redb***@libero.it> wrote: That will only work with pure-HTML. Think of a page that should> "Onur Güzel" <kimiraikkone***@gmail.com> ha scritto nel messaggionews:2c54ce94-24a0-40e6-acce-ade268dce***@y4g2000yqy.googlegroups.com... > > > On Jun 10, 10:06 am, Jeff Caton <j.ca...@gmailnotspam.com> wrote: > >> Hello! > >> How can I disable loading images in the webbrowser control? > > what about a 2 pass procedure? > u load the html page using webclient, then you can remove all the unwanted > tags , then you load the code into a webbrowser control :) retrieve images or any visual content dynamically, that is, while page is open, using some script. At that time, newer content than the loaded content (content, whose img tags are removed) will bring images. Worse, there may be other elements in document such as links which have the non-absolute targets (hrefs), like "page.html" rather than "http://somedomain.com/page.html". When you download a file onto a local disk (let's say c:\), browser will try locating link's target at: c:\page.html" which is not available. So, disabling images using registry before launching application is wiser to approach. Restore it on app shutdown, as well. Onur Güzel
Need assistance with Detailsview and passing values to a textbox
Using several bindingSource on the same datatable. create eventhandler Excel Chart as Image (no file) INotifyPropertyChanged issue Icon Chalange See Hot Sexy Star KAJOL Nude Bathing Videos In All Angles. A little worried. Help Calling A Function from a 32-bit non-.NET DLL .Net Developer - Little Rock, AR (Citizens may only apply) |
|||||||||||||||||||||||