Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing the HTML in a control

Status
Not open for further replies.

Kirogl

Programmer
Mar 24, 2004
14
0
0
GB
I trying to write an e-mail client that by defult displays the text in a normal multi-line text box but at the click of a button opens up a hidden html displaying control (I can't think whats it called, but it's the one that comes with free with VB5) and then displays the e-mail as a web page.
I'm also intrested in first scanning the HTML of the message to see if theres any add's in there (i.e. changing a line that reads
Code:
<img scr="[URL unfurl="true"]http://www.spamer.com/AreYouThere.gif?email@address.com">[/URL]
to
Code:
<img scr="NoYouDont.gif">
I can do all that except... the importing of the html into the second control, unless I save the message as a file and open that, but thats a bit of a poor work-a-round as it creates lots of temp files.

Any idears?
 

Is it the webbrowser control or the html edit control? There are examples of both on this site. Just search for webbrowser or html edit, or if you find the name of your control we may be able to help you further but since we do not know which control it is. It is kind of hard to help.

Please read FAQ222-2244, it will help you in forming a better question.

Good Luck

 
I was talking about the webbrowser control.
I think... I've sorted it now.
I think what I wanted to do was something like this
Code:
dim tempstr as string
tempstr = text1.text

WB1.document.clear("")
WB1.document.write(tempstr)

and thanks for the hints about posts.

-----
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top