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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating and dealing with events

Status
Not open for further replies.

capone67

Programmer
Nov 6, 2000
115
CA
Hi Gang

I have an activeX control that I have created and includes an event. Here is my declaration

Public Event MyClick()

and I call it with this peice of code

RaiseEvent MyClick

These are the only two peices of code I have added to my control.



I then have my HTML page that has the control embeded as follows.

<!-- If any of the controls on this page require licensing, you must
create a license package file. Run LPK_TOOL.EXE to create the
required LPK file. LPK_TOOL.EXE can be found on the ActiveX SDK,
If you have the Visual
Basic 6.0 CD, it can also be found in the \Tools\LPK_TOOL directory.

The following is an example of the Object tag:
-->
<OBJECT CLASSID=&quot;clsid:5220cb21-c88d-11cf-b347-00aa00a28331&quot;>
<PARAM NAME=&quot;LPKPath&quot; VALUE=&quot;smartwrap.LPK&quot;>
</OBJECT>


<OBJECT ID=&quot;UserControl1&quot;
CLASSID=&quot;CLSID:124E09C1-8854-4857-BBAE-BE6AA73F4B83&quot;
CODEBASE=&quot;SmarteWrap.CAB#version=2,1,0,61&quot;>
</OBJECT>

<SCRIPT LANGUAGE=&quot;VBScript&quot;>
<!--
alert(&quot;here&quot;)
Sub UserControl11_MyClick()
alert(&quot;here2&quot;)
end sub
-->
</SCRIPT>

I dont seem to be getting the event though. The here2 message never appears even though I am clicking the button that causes the event to be raised

Any input into this one?

Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top