Web browser control : navigating to html
I have html source in text box control.
and i want to display it in webpage form in webbrowser control
I am doing very simple
Webbrowser1.Navigate Text1.Text
but its not displaying me anything.
I also tried
WebBrowser1.Navigate "<htm><head></head><body><h1>Hello World</h1></body></html>"
and its also displaying nothing.
Kindly help me to display web page like display for html source in text box.
Thank You.
Re: Web browser control : navigating to html
I hope WebBrowser1.Navigate and WebBrowser1.Navigate2 will take only the url links as parameters...
Re: Web browser control : navigating to html
I think its the reason i am seeing blank document.
btw in VB.Net it can done with DocumentText property.
MyWebBrowser.DocumentText = "<html></html>"
but i want to it in vb6.
Re: Web browser control : navigating to html
One option is to create a temp html file then open it in the webbrowser.
VB Code:
Sub Command1_Click()
'create temp file
Open App.Path & "\temp.html" For Output As #1
Print #1, Text1.Text
Close #1
'Now display in webbroswer
Webbrowser1.Navigate App.Path & "\temp.html"
End Sub