Solved

Webbrowser control with no images

Posted on 2004-10-08
8
602 Views
Last Modified: 2011-10-03
Hi,
Has anyone been able to use this control:

http://www.mvps.org/emorcillo/vb6/inet/index.shtml

to load a webpage with no images.  I tried installing the type libraries and the webbrowser project and
can't get them to run.  I use vb 6 and currently use the standard webbrowser control but would like to be able to turn images off and on for particular pages during a browser session in my project.  I noticed all references seem to point to windows\system rather than windows\system32.  Whether I keep them that way or change them to point to the correct files I still can't get the project to load.  In the test project for form1 I get the following log:

Line 13: Class WBC.WebBrowser of control WebBrowser1 was not a loaded
control class.
Line 19: The property name _ExtentX in WebBrowser1 is invalid.
Line 20: The property name _ExtentY in WebBrowser1 is invalid.

The ocx appears not to be loaded, showing only a picturebox rather than the actual control and having nothing on the toolbox.  When I try to redo the reference to the component I get "Unexpected Error (32810)".  I noticed a posting on google groups saying the same error with the same control.  Thanks.
0
Comment
Question by:jodyglidden
  • 4
  • 4
8 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 12272028
Did you download OLELIB.TLB and register is properly?  You can use this tool to register it:
http://www.vbaccelerator.com/home/VB/Utilities/Type_Library_Registration_Utility/article.asp
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12273215
Hi,
Thanks for the link.  I tried the type library utility and unregistered and re-registered version 1.81 of the library.  It still seems to give me the same error though when I try the sample project or try to draw the control on a form.  Anyone have any different experiences getting it to work?

0
 
LVL 28

Expert Comment

by:AzraSound
ID: 12275879
If you open a new project and add the Microsoft Internet Controls component and try and draw it on a form do you still get an error?
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 1

Author Comment

by:jodyglidden
ID: 12276543
Do you mean add Ednamo's webbrower control?  If so, yes, I get the same error.

0
 
LVL 28

Expert Comment

by:AzraSound
ID: 12276572
I admit I haven't looked at his sample in a long while, but, he used to have it setup where you dropped a "regular" webbrowser on your form, and then used his type library to add all of these extra functionalities to it.  He has compiled his own control (with the webbrowser control embedded into it) now?
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12282583
Yes, there's now a control that he compiled.  If anyone can figure out how to turn off imagies with either his type libraries in combination with the normal control or the webbrowser embedded control let me know.  Thanks.
0
 
LVL 28

Accepted Solution

by:
AzraSound earned 500 total points
ID: 12282701
I would try dropping him a line if you don't get any further support here.  I have written him in the past regarding his samples and he was usually quite prompt in his response.
0
 
LVL 1

Author Comment

by:jodyglidden
ID: 12293665
Thanks.  I tried emailing him last week notifying him of the error that I got as well as the similar error that I found a user had on google groups with his component and he doesn't respond unfortunately.  Oh well.  It looked like a good solution if only it were still active.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

777 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