WebBrowser.Object BackColor ??

A

Alan

Hello All

HAve put an animated gif into a form using the following code

Private Sub Form_Load()
Me.ocxWebBrowser.Object.Navigate CurrentProject.Path & "\policecar7.gif"
End Sub

Private Sub ocxWebBrowser_NavigateComplete2(ByVal pDisp As Object, URL As
Variant)
Me.ocxWebBrowser.Object.Document.body.Scroll = "no"
End Sub

This works well and the animation performs as expected
My only problem is the animated gif has a blue background as does the form,
however the object appears to put a frame with a white background around the
..gif and for the life of me I cant find where to change this to the same blue
colour as the gif and the form

Any thoughts would be appreciated

Kindest Regards
 
D

Douglas J. Steele

I'm not sure you can: web browsers get their colour cues from the HTML (or
CSS) they're rendering.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Charts in VBA 0
runtime error 91 2
Thank you Mr. Carlson 1
Play animated gif on waiting 7
Continuous Form Control Setting (Select Case) 0
Transparent GIF 2
Open to Blank Form 2
Animated GIF as background 4

Top