473,320 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Don't want images with WebBrowser

Hi, does anyone know how to ask the System.Windows.Forms.WebBrowser object
not to load the page's images? I just want the text returned from a web page.
Are there any alternatives to using WebBrowser, or does it have an option to
disable image downloading?

Thanx.

Sep 21 '06 #1
2 1427
use the WebRequest methods instead, they return the page as text

http://samples.gotdotnet.com/quickst...tGET.cs&font=3

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
"Ehsan" <Eh***@discussions.microsoft.comwrote in message
news:96**********************************@microsof t.com...
Hi, does anyone know how to ask the System.Windows.Forms.WebBrowser object
not to load the page's images? I just want the text returned from a web
page.
Are there any alternatives to using WebBrowser, or does it have an option
to
disable image downloading?

Thanx.

Sep 21 '06 #2
Hi Ehsan. You could just walk the form collection of controls and set
the images as visible=false

Agus

Ehsan wrote:
Hi, does anyone know how to ask the System.Windows.Forms.WebBrowser object
not to load the page's images? I just want the text returned from a web page.
Are there any alternatives to using WebBrowser, or does it have an option to
disable image downloading?

Thanx.
Sep 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: BKM | last post by:
When I have my Webbrowser control navigate to a URL, is there any way I can stop it from loading any images that are on the site to speed up navigation?
5
by: Blaktyger | last post by:
How can this be done? Images are stored in a LONGBLOB field. When I try to display them, it prints out the binary data as it is... Thank you
4
by: Ben Thomas | last post by:
Hello Friends I am playing around with the Web Browser control in VB.net trying to build a custom browser The basic navigation is working OK but I am stuck trying to block images and flash files...
5
by: SPE - Stani's Python Editor | last post by:
Hi, During optimizing SPE for Ubuntu, I found something strange. I have Ubuntu 5.10 "The Breezy Badger" and unfortunately this code is not working: >>> import webbrowser >>>...
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
5
by: ThisBytes5 | last post by:
I have an application that uses the web browser component in VS 2005. I know this is just a wrapper for the com component. What I need to do is control wether or not the images on the navigated...
0
by: kjellkp | last post by:
Hi, How do I keep the ratio aspect on images when I try to resize them in a webbrowser controller in my C# .Net 2.0 windows application ?. I use Webbrowser.execCommand("insertImage") to insert...
3
by: TedTrippin | last post by:
Hi, Background - I've create a windows application in VS and added a WebBrowser component and all works well. I'm now trying to do this programmatically. My application now listens on a socket...
1
by: heyi | last post by:
hi, i'm making an app which uses a webbrowser control to show some offline (not cache) html pages like a slide show. let's say pages in a folder on the desktop etc... when it came to testing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.