A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

WebBrowser.Object BackColor ??



 
 
Thread Tools Display Modes
  #1  
Old December 4th, 2009, 06:28 PM posted to microsoft.public.access.forms
Alan
external usenet poster
 
Posts: 459
Default 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  
Old December 5th, 2009, 12:56 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.