Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add a on Event to a ActiveX object

Status
Not open for further replies.

stevedemo

Programmer
Mar 30, 2008
54
US
Is it possible to add an onEvent to a ActiveX object ?

The one I am talking about is the webbrowser control.
The control lacks a very important feature - the OnDocumentComplete event.

Thanks,

Steve

All I want is the chance to prove money won't make me happy.
 
How about:

Code:
Me.NameofControl.Navigate "here"
While Me.NameofControl.Busy
   Do Events
Wend
 
Thanks Remou,

That will work when I fire the navigate event with a click however if the user clicks on a hyper link the program will never see this code. The onnavigate event is also missing.

Is is possible to modify the code that MS Access uses to interface with the activeX controls ?

I have done this many times in another language but I haven't been able to locate the VBA code Access uses.

A little background on what I am doing:
I am building a module to easily interface with the Webbrowser control. I plan on releasing it to the public domain when complete.

All I want is the chance to prove money won't make me happy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top