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

C# ActiveX Control - How to call function from JavaScript/VBScript?

Status
Not open for further replies.

cyberdrugs

Programmer
Nov 4, 2007
1
0
0
GB
Hi all,

I wrote a windows control in C#, and have been using it for a few months. I recently decided to try run it as an ActiveX Control, so I gave it a GUID, and now reference it in HTML like so:

<object id="myControl"
classid="clsid:A4B9C3C2-1234-451a-AEC1-DE3B042FB311" height="100%" width="100%" >
</object>

I now want to know, how the heck do I call functions within the control? I've tried the following:

<script type="javascript">
myControl.myFunction();
</script>

Unfortunately that doesn't work, anybody able to point me in the right direction please?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top