If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
WebBrowser.Object BackColor ??
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 -- Many Thanks Alan |
#2
|
|||
|
|||
WebBrowser.Object BackColor ??
I'm not sure you can: web browsers get their colour cues from the HTML (or
CSS) they're rendering. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Alan" wrote in message ... 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 -- Many Thanks Alan |
Thread Tools | |
Display Modes | |
|
|