Click here to Skip to main content
15,908,673 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi ,am new in this forum and i dont know if am posting this in a wrong department.
i have a problem and try to figure it out with vb web browser control am working with Visual Basic 2010


let me first go through my case so to understand

my project is to display and send emails by the user selects Reply replyAll Forward
my emails are .eml "widnows live emails" and i have export them to my computer file.

to Display the email am simply using a vb web browser and am just navigating my browser to the eml file stored in my computer;
for example

me.webBrowser1.navigate("c:\desktop\emails\email1.eml")
here .. am succesfuly can see all the contents of the body of my email BUT...
if the email1 has a picture attachment then .. my webbrowser at the end of the document is always inserting automatically that images.
if i look at the View source of the browser i see this line of html code

<CENTER><IMG SRC="CID:{E5A60042-773C-41AE-9A46B70436EB3BD6}/Koala.jpg"></CENTER>

for my case the attachment is just attachment and is not an image embedded in the email "visual image" is only attachment and normally when am replying to email this image attachment should be not be in my web browser.
is there any way to disable that?

i try replace string in the event of webrowser completed but is not work becuase
when excecuting the replace is always refreshing the web browser and starts over and over again,

me.webBrowser1.documentText=me.webbrowser1.documenttext.replace(unwantedString,EmptyString)

please let me know if something is not clear.

is there any help how to figure it out? : )
if there is not option to disable that automatically how i can replace strings with out prevent the browser to refresh?
Posted

1 solution

You should take a look at The most complete C# Webbrowser wrapper control[^] - the DownloadBegin can be used to prevent additional downloads.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
thatraja 10-Jul-11 14:12pm    
It's a nice article already in my bookmark. 5!
Espen Harlinn 10-Jul-11 14:46pm    
Thank you, thatraja!
Sergey Alexandrovich Kryukov 10-Jul-11 16:15pm    
Good to know, my 5.
--SA
Espen Harlinn 10-Jul-11 16:35pm    
Thank you, Sergey!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900