Solved

Resize the web browser activex control in access 2000

Posted on 2004-09-19
5
1,330 Views
Last Modified: 2012-05-05
Hi,

I want to resize the Microsoft web browser activex control I have in an access form, so that it will be the same size as the form.

I put in the following code in vba
    Me.WebBrowser.height = Me.WindowHeight
    Me.WebBrowser.width = Me.WindowWidth

But the control does not take on height and width values of the form. Is this a problem with the activex control? How do I fix it?


Thanks
0
Comment
Question by:skyrise11
5 Comments
 
LVL 26

Accepted Solution

by:
Alan Warren earned 250 total points
ID: 12098950
Hi

Get that problem all the time in vba, the only fix I have found for it is to delete the the control and create it again, ensuring to draw it the size you want when first creating it.

This is not an issue in VB, only in VBA.

Alan
0
 
LVL 34

Expert Comment

by:flavo
ID: 12098956
private sub form_load()
Me.WebBrowser.top = 0
 Me.WebBrowser.left = 0
Me.WebBrowser.height = Me.WindowHeight
 Me.WebBrowser.width = Me.WindowWidth

end sub

Dave
0
 
LVL 34

Expert Comment

by:flavo
ID: 12098960
Tested with the Adobe control (dont have the web one installed)
0
 

Author Comment

by:skyrise11
ID: 12099539
flavo,

Then how do you open a web page to www.google.com using the adobe control?
I'm assuming you're refering to Adobe Acrobat Control for ActiveX.
0
 
LVL 6

Expert Comment

by:Plamodo
ID: 12112352
I agree with allanwarren.  Every time I need to resize the webcontrol, I delete the old one and draw a new one.  Doesn't seem to be a way around this - without using a different type of control (?)
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question