在浏览器中
使用
var oCup = new ActiveXObject("MyCup.CupViewer");
oCup.ShowCupForm(1);
来调用该组件。但是怎样节后该组件发送回来的事件呢?
使用<object ...>好像不行!
...全文
8510打赏收藏
用VB写了一个ActiveX EXE,怎样在浏览器中接受该组件发送的事件?该事件也是自定义的!
我再ActiveXEXE中申明了以下事件 Public Event OnPourWater() 在浏览器中 使用 var oCup = new ActiveXObject("MyCup.CupViewer"); oCup.ShowCupForm(1); 来调用该组件。但是怎样节后该组件发送回来的事件呢? 使用好像不行!
var oCup = new ActiveXObject("MyCup.CupViewer");
var oCupEvent = new ActiveXObject("MyCup.CupViewerEvent");
oCup.SetEvent(oCupEvent);
oCup.ShowCupForm(1);
去看看IHtmlDocument2怎么动态设置OnXXXX事件的