title: VB6 usercontrol Raise Event, how to catch the event in VBSCRIPT?
body: <p>I am trying to catch an event in the VBSCRIPT of an html page but I can't make it work. I must have missed a step.</p>
  
  <p>This is the code of my usercontrol (VB6):</p>
  
  <pre><code>Public Event sendText(ByVal Text As String)
  
  Private Sub Command1_Click()
      RaiseEvent sendText(Text1.Text)
  End Sub
  </code></pre>
  
  <p>And this is the code of my web page (HTML):</p>
  
  <pre><code>&lt;form&gt;
  
  &lt;OBJECT name="ActiveX" id="ActiveX" classid="clsid:..."&gt;&lt;/OBJECT&gt;
  &lt;script language="VBScript"&gt;
  
  Sub ActiveX_sendText(Text)
   Msgbox("aaa" &amp; Text)
  End Sub
  
  &lt;/script&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The Event is raised in the user control when clicking the Command1 button, but I never get into the VBSCRIPT function.</p>
  
  <p>I am using IE8/IE8 Standard.</p>
  
  <p>Any clue?</p>