ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   WebBrowser Navigate Path (https://www.excelbanter.com/excel-programming/442427-webbrowser-navigate-path.html)

K[_2_]

WebBrowser Navigate Path
 
Hi all, I got this VB code bleow which work fine but the only problem
i am getting is that i cant get the image in webbrowser. Please can
any friend can help

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Me.WebBrowser1.Navigate("about:<html<marquee scrolldelay=130
Hello World <body leftmargin='0' rightmargin='0' topmargin='5'
bottommargin='0'<img src =" & Application.StartupPath & "\Smile.JPG'
height=20 width=20</img</body</marquee</html")

End Sub

Tim Williams[_2_]

WebBrowser Navigate Path
 
You're missing the opening quote on the src attribute.

<img src ='" & Application.StartupPath & "\Smile.JPG' height=20 width=20

Also, there's no closing tag required for <img

Tim


"K" wrote in message
...
Hi all, I got this VB code bleow which work fine but the only problem
i am getting is that i cant get the image in webbrowser. Please can
any friend can help

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Me.WebBrowser1.Navigate("about:<html<marquee scrolldelay=130
Hello World <body leftmargin='0' rightmargin='0' topmargin='5'
bottommargin='0'<img src =" & Application.StartupPath & "\Smile.JPG'
height=20 width=20</img</body</marquee</html")

End Sub





All times are GMT +1. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com