I'm going to post this in the other forum, too.

Here's the deal...
I have an ActiveX control that I wrote. I have custom events that I raise from code like AxInitializationComplete, and ErrorTrapped.

When hosted on a vb form all my events raise as expected. When hosted on a web page in Internet Explorer, the only events that fire are ones in which RaiseEvent is called in an event raised by the control or its constituent controls.

I know some of you are going, "HUH?"

If I call RaiseEvent from any Method that I wrote, the event does not bubble up to IE. If I call RaiseEvent in say, cboInput_Click(), my events raise.

VB Code:
  1. Option Explicit
  2.  
  3. Event ErrorTrapped()
  4. Event AxInitializationComplete()
  5. Event UserSelected()
  6. Event ControlGotFocus()
  7.  
  8. Private Sub cboInput_LostFocus()
  9.     RaiseEvent UserSelected 'OK
  10. End Sub
  11.  
  12. Private Sub UserControl_Initialize()
  13.     Call Init()
  14. End Sub
  15.  
  16. Private Function Init()
  17.     RaiseEvent AxInitializationComplete 'Does Not Work
  18. End Sub