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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I fill up a Webbrowser with a string instead of file?

Status
Not open for further replies.

tedsmith

Programmer
Nov 23, 2000
1,762
AU
I can use the Webbrowser to navigate to a file OK but how do I feed in a string of html code in memory (after having received it into memory from another computer via a Winsock)?
 
The standard Microsoft Internet Webbrowser that is in the components list
 
I have minimal HTML knowledge and have not used the WebBrowser control before but this seems to work.

Code:
Option Explicit

Private Sub Form_Click()
    WebBrowser1.Document.Write &quot;<B>Hello</B>, <I>World</I>!&quot;
End Sub

Private Sub Form_Load()
    WebBrowser1.Navigate &quot;About:Blank&quot;
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top