|
-
Dec 12th, 2006, 02:34 AM
#1
Thread Starter
Addicted Member
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.
-
Dec 12th, 2006, 02:38 AM
#2
Re: Web browser control : navigating to html
I hope WebBrowser1.Navigate and WebBrowser1.Navigate2 will take only the url links as parameters...
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Dec 12th, 2006, 02:42 AM
#3
Thread Starter
Addicted Member
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.
-
Dec 12th, 2006, 03:04 AM
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|