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!

Displaying cutom HTML in a WebBroweser control

Status
Not open for further replies.

Kirogl

Programmer
Mar 24, 2004
14
0
0
GB
Hi all,
I want to display custom HTML in a WebBrowser control (in VB5) by directly sending the HTML code to the control, I'm fairly sure I can do it but not sure how.

At present I've a work-a-round where I save the HTML into a file then "navagate" to that file (and delete it on unloading) but this is a pain.

Any one know of an easyer way?

P.S. I think it's something like

Code:
WB1.Navagete "???://<html><body><h1>yep this works</h1><hr /></body></html>"

but im not sure.

-----
 
Try:
Code:
WB1.Document.Write "<html><body><h1>yep this works</h1><hr /></body></html>"

Have Fun, Be Young... Code BASIC
-Josh

cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top