I am using vs2008 and I would like to disable image upload on my webbrowser control, but I see no solution other than WebBrowserEX, which does not look outside of .net 1.1.
Does anyone know how to do this? Thanks!
you should replace its tag, try the following code
var html = webBrowser.DocumentText; var newOne = Regex.Replace(html, "<img.*/>", "", RegexOptions.Multiline); webBrowser.DocumentText = newOne;
This is a similar question, check it out: Disable image loading from the web browser control before the event completed by the document
Hope to be helpful
Source: https://habr.com/ru/post/1714871/More articles:What causes more than 200 ms of waiting for a response to HTTP? - httpHow can I use JXMapViewer in my applet? - javaJava transactions sql. What am I doing wrong? - javaRewriting the system from scratch: what do you include in sentences? - project-managementSmarty selection and localization - phpPHP include_once: import processing i.e. For configuration files - includeHow to install Image :: Magick on Debian etch? - perlI cannot assign a parent to a child in the Google App Engine datastore. What am I doing wrong? - google-app-engineTableview с разделами, управляемыми контроллером получаемых результатов - iphonePHP: 8 character UTF encoding - phpAll Articles