Re: html code in vb code !
You will want to write it out to a htm file and then navigate to that?
If you want to do it dynamically then you may want to look at the Document.Write function.
Re: html code in vb code !
no .. i just want to be opened in webbrowser1.
Re: html code in vb code !
Then what about writting the html out to a htm file and .navigate2 to that?
Re: html code in vb code !
can it just be like this one?
VB Code:
Private Sub Form_Load()
WebBrowser1.Navigate "about:" & _
"<html>" & vbCrLf & _
"<head>" & vbCrLf & _
"</head>" & vbCrLf & _
"<body>" & vbCrLf & _
"<p><a target=" & Chr$(34) & "_blank" & Chr$(34) & "href=" & Chr$(34) & _
"http://www.vbforums.com" & Chr$(34) & ">Visit My Site</a></p>" & vbCrLf & _
"</body>" & vbCrLf & _
"</html>"
' or load your ad page
End Sub
using " " _ etc.. i do not know how to use this ..
Re: html code in vb code !
I believe you can not write a page that way. It needs to be a file located on a web server or your local system.
Re: html code in vb code !
Why not? this code it`s work ..
VB Code:
Private Sub Form_Load()
WebBrowser1.Navigate "about:" & _
"<html>" & vbCrLf & _
"<head>" & vbCrLf & _
"</head>" & vbCrLf & _
"<body>" & vbCrLf & _
"<p><a target=" & Chr$(34) & "_blank" & Chr$(34) & "href=" & Chr$(34) & _
"http://www.vbforums.com" & Chr$(34) & ">Visit My Site</a></p>" & vbCrLf & _
"</body>" & vbCrLf & _
"</html>"
' or load your ad page
End Sub
Where can i find a tutorial to learn to do transform the html code to vb code ?
Re: html code in vb code !
ok .. i write the code .. and you have right. Thenx for help