Microsoft Web Browser Style

lopiner

Registered User.
Local time
Today, 13:29
Joined
Jan 21, 2010
Messages
29
Hi to all

I have a Microsoft Web Browser Control on a form but i cant seem to format to a Flat Special Effect Style. It always returns sunken. Does anyone knows if this is possible (to have a Web Browser control with no lines or special effects showing a web page as it was part of the form)?

Thanks in advance
 
Are you using the new Access 2010 Web browser control or something else?
 
Thanks for the reply HiTechCoach
I cant seem to find a version for it. In the controls list the name is just "Microsoft Web Browser" and in the properties there isn't information about the version. I'm using Access 2003.
I don't know if this control is part of the Internet Explorer but my version is quite old for the browser, its the 6.0.2900. I cant update it because i don't have the permissions to do it. Thanks for any help.
 
In the controls list the name is just "Microsoft Web Browser" and in the properties there isn't information about the version. I'm using Access 2003.
Mostly likely than you will see in the properties of that ActiveX control "Special Effect" and there you will be able to remove sunken.

Please keep in mind (and you will find this all over the net by googling) that how your Webbrowser control acts is sometimes dependant on the internet page you are looking at. Thus if they have borders, scroll bars and the like in their webpage then your control will show them.

If this is the case and you need help in removing one of them we can try to do it but it does not always work.
 
Thanks for the reply darbid

The ActiveX control doesn't have a specific menu for properties like many others, just the common properties of an access object. In that properties there is the special effect and is set to Flat. If i change it to sunken then the sunken effect is doubled. I have tried to show many different pages but they all appear with the sunken effect.
I have also checked the Microsoft page about the control http://msdn.microsoft.com/en-us/library/aa752040(VS.85).aspx but i cant find anything related to this feature.
 
The ActiveX control doesn't have a specific menu for properties like many others, just the common properties of an access object. In that properties there is the special effect and is set to Flat.
What internet page are you looking at with the webbrowser control.
 
Broderic: I have installed Firefox but cannot find a ActiveX for a Firefox Web Browser control.

darbid: I'm using it to construct a URL of google maps and display a static image like this one: Link
The result is this Link

Thanks for the help
 
Broderic: I have installed Firefox but cannot find a ActiveX for a Firefox Web Browser control.
Good luck with this. I could not get it to work although I am sure it does. Even if you get it working you would have to check that the user has FF installed. Right now it is safe to assume that people have IE installed. This of course is changing thank god (I am a FF fan). With time the assumptions would change.

darbid: I'm using it to construct a URL of google maps and display a static image like this one: Link
The result is this Link

Thanks for the help
So you are making the HTMl yourself is that right? if so can you give me your html file - the picture is not important.
 
I'm an FF fan too. Unfortunately the IT guys from my company don't allow us to have FF ( i have because i have cried a little :D) so the application would not work with FF on other machines.
I'm not constructing the html, just the URL like this:
Code:
Private Sub Form_Open(Cancel As Integer)
Dim CurrentURL As String
    CurrentURL = "http://maps.google.com/maps/api/staticmap?center=" & Me.Address & "+" & Me.City & "+" & Me.PostalCode & "+" & Me.Country & Chr(38) & "zoom=14" & Chr(38) & "size=400x450" & Chr(38) & "maptype=roadmap" & Chr(38) & "sensor=false"
    Me.MapBrowser.Navigate URL:=CurrentURL
End Sub

I have also tried with other sites but the sunken effect is always there unfortunately.
 
can you give me an example of a URL that you have. I wil then put it into a WBC and see if I can remove it.
 
I have removed both the scroll bars and the sunken bit.

You will see Google.com is different but your picture is ok.
 

Attachments

darbid
Thanks a lot, that works fine.
I had just a little problem in the beginning because i didn't had the "Microsoft HTML Object Library" in my references.
Thanks again.
 
darbid
Thanks a lot, that works fine.
I had just a little problem in the beginning because i didn't had the "Microsoft HTML Object Library" in my references.
Thanks again.
Your welcome.

Actually I was thinking, the returned picture has no HTML source code (I am not that good with websites and HTML) - but if you look at the API info from Google - you might be able to do your HTTP request without a webbrowser. You get a response, in this case a file, save it somewhere and then just show the picture in a picture box.

Anyway just a thought.
 

Users who are viewing this thread

Back
Top Bottom