Web Browser Control Reference

M

Mac

I have the proper references set up so that I can create new WebBrowser
variables and see their members via auto-complete lists, but I can't
figure out how to get access to realize that the "object" on my form is
indeed a control it can recognize. Consequently when I address my
control using the "Me.objWeb" style syntax all I get in auto-complete
are the generic object members.

How do I get access to recognize the control for what it is?

I am using a web browser control for the first time. I have a complete
listing of the control's members, but I have to look them up on my
printout or in the object browser. It would be nice to be able to get
auto-complete text to pop up when I use the control just as it does
when I use a text box or any other common control.
Thanks in advace for any help you can offer,
Mac
 
S

shar0n82

I don't think this has ever worked. I have to look them up every time I use
this control.

FYI
 
S

Stephen Lebans

It depends on which Interface of the control you are trying to reach.

For the top level Web Browser interface:
At the top of your form's Class module containing the MS Web Browser
control add:

Dim wb as WebBrowser


In the form's Load event add:

Set wb = Me.NameOfYourWebBrowserControl.Object

Now compile your project. The Web Browsers methods/props will now be
available via Intellisense.

You would use the same logic to access the other publis interfaces
deeper within the control.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top