You know that little moving iconm in your browsers top corner? Well i'm wondering, how would I put one of those in a browser i'm making?
Printable View
You know that little moving iconm in your browsers top corner? Well i'm wondering, how would I put one of those in a browser i'm making?
use any animated GIF OCX, or just make it your self, add a timer and a picture box, and then change the picture every 0.5 or 1 second, it is not that hard
IE and Netscape both use a bitmap for that moving icon
you can reproduce that in VB by using the BitBlt API
PaintPicture will also do the trick.
yeah, you should use paint picture, there is really no need for bitblt, as this doesnt require that much speed.
What? How can you say that? "doesn't require that much speed"!
I am talking about it will move when the page is loading and stop when it's loaded.
Something like that?Code:Private Sub Command1_Click()
Webbrowser1.Stop
Timer1.enabled = False 'timer holds your animated gif events
End Sub
Private Sub WebBrowser1_DownloadBegin()
Timer1.enabled = True
label1.caption = "Downloading..."
End Sub
Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
Timer1.enabled = False
Me.caption = webbrowser1.locationName & " - TimbudTwo's Webbrowser"
Label1.caption = webbrowser1.LocationURL
And Mih_Flyer, wouldn't a timeout .5 or .1 make it look like it was changing from pic to pic? It wouldn't give it an easy switching and moving picture. It'd be like Flash...Flash, Not FlashFlash...hope you get what I mean.