By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,665 Members | 2,802 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,665 IT Pros & Developers. It's quick & easy.

Web Browser control is not the Web Browser control

100+
P: 759
I know. The title sound very strange but I can't find a better one.

In a form (Access) I have a Web Browser control but the list members seems not to be for this control (see, please, the attached pics).
The same control, in Excel environment, is OK.

Have you any idea about what happen ?

Maybe the discussion from this thread
http://bytes.com/topic/access/answer...xt#post3712915
will help you... to help me.

Note, please, that I follow the instruction from post #5 to register shdocvw.dll.
Also, I have searched in my computer the ieframe.dll but with no results.

An answer to this question is more for my knowledge, do not burning me.
My last option is to reinstall Office.

Thank you!


Attached Images
File Type: jpg Property Sheet.jpg (60.7 KB, 1376 views)
File Type: jpg AutoListMembers.jpg (85.5 KB, 1336 views)
Apr 2 '12 #1

✓ answered by Stewart Ross

VBA's intellisense does not 'know' about the methods of ActiveX controls, Mihail, so what you are seeing are the generic methods of controls in general. Calls to the methods of the ActiveX control should still work, but you have no direct way to see all of the methods via intellisense or the VBA Object browser.

-Stewart

Share this Question
Share on Google+
6 Replies


Expert Mod 2.5K+
P: 2,545
VBA's intellisense does not 'know' about the methods of ActiveX controls, Mihail, so what you are seeing are the generic methods of controls in general. Calls to the methods of the ActiveX control should still work, but you have no direct way to see all of the methods via intellisense or the VBA Object browser.

-Stewart
Apr 3 '12 #2

100+
P: 759
Indeed Stewart. It works as you say. Thank you !
I don't select yet your answer as the best answer because I have one more question. It is possible that the answer to this question to be the best one.

Is it possible to fix that ? (to "teach" intellisense all methods)
How ?

I repeat:
In other Office applications (Excel, Word) intellisense work as is expected.
Apr 3 '12 #3

TheSmileyCoder
Expert Mod 100+
P: 2,321
Well I often use the treeview that comes with "Microsoft Common Controls 6.0" which is also an active X object. Lets assume that I have registered the dll properly, and that I have a form with a treeview control called tvFiles.

Now I try to use the control in code I also don't get intellisense. But there is a way around this, as shown below:

Expand|Select|Wrap|Line Numbers
  1. Dim tv as MsComCtrlLib.Treeview
  2. set tv=Me.tvFiles.Object
I now get proper intellisense for the tv object. I just have to remember to set it to Nothing when my code exists.
Apr 3 '12 #4

NeoPa
Expert Mod 15k+
P: 31,273
Mihail:
I don't select yet your answer as the best answer because I have one more question. It is possible that the answer to this question to be the best one.
That's not how it works Mihail. I've selected Stewart's as it answers the question in the Original Post. This is the only criteria that should be used for determining which to select.
Apr 4 '12 #5

100+
P: 759
@NeoPa
Ok, no problem.
But I still think that this thread should have as best answer a couple (Cause + Solution) = (Stewart + Smiley).

@Smiley
Yours code is a little bit (or a little more) beyond my skills.
I understand the idea but I don't know how to apply for my needs.
Yours MsComCtrlLib should be mine shdocvw.dll ? Or other thing ?
I think that, if you will be so kind to write a specific code for my damn WebBrowser control, I should be able to understand the code (and to use the idea next time).
I am sorry, but I have no idea how much time involve this for you. If it is too much, leave it, please.
Thank you !
Apr 4 '12 #6

NeoPa
Expert Mod 15k+
P: 31,273
Mihail:
But I still think that this thread should have as best answer a couple (Cause + Solution) = (Stewart + Smiley).
It seems you don't appreciate the point then Mihail. Never mind.

A thread should only have one question, and that should be asked fully in the first post and it should match the title. People searching for help on the internet will typically use the title to scan for what they want after googling it. The answer is not appropriate unless it matches the title and the first post.

Assume :
You ask question A. You then ask question B in the thread, or even clarify question A to mean something different from its original meaning. Someone searches and sees the title which matches the original question A. They don't want the post that answers your question B or even your amended question A. They want the answer that matches the original question A. That's why we don't allow multiple questions in a thread and we ensure the Best Answer is awarded to posts which address the original question specifically.

PS. We don't currently have any facility for awarding multiple Best Answers. If it were ever introduced though, it would still be important that it follows the same guidelines and be used sparingly, otherwise it could dilute the benefits of having it in the first place.
Apr 4 '12 #7

Post your reply

Sign in to post your reply or Sign up for a free account.