ActiveX.exe和RaiseEvent [英] ActiveX.exe and RaiseEvent
问题描述
VB6 ActiveX.exe引发VB6应用程序看到的事件。
VB2005中的相同设置。要引发的事件是frmSweep格式。与在VB6中一样,
frmSweep在事件发生时被隐藏。
我知道屏幕上的动作和VB2005中的声音/>
正确使用ActiveX.exe。
但事件永远不会被提出!!!
没有错误或重建VB2005应用程序后显示的警告
任何人都知道为什么没有提出任何事件?
Galen
Galen Somerville写道:我知道通过屏幕上的动作和VB2005使用ActiveX的扬声器中的声音.exe正确。
然而事件永远不会被提升!!!
您能否显示为事件添加处理程序的代码?
" Chris Dunaway" <杜****** @ gmail.com>在消息中写道
news:11 ********************** @ y41g2000cwy.googlegr oups.com ...Galen Somerville写道:我知道通过屏幕上的动作和VB2005正确使用ActiveX.exe的扬声器中的声音。
然而事件永远不会被提升!!!
你能显示为事件添加处理程序的代码吗?
Aha,典型的事件处理程序是什么样的?
Galen
Galen Somerville写道:" Chris Dunaway" <杜****** @ gmail.com>在消息中写道
新闻:11 ********************** @ y41g2000cwy.googlegr oups.com ...Galen Somerville写道:我知道通过屏幕上的动作和VB2005正确使用ActiveX.exe的扬声器中的声音。
然而事件是从来没有提出过!!!
你能展示为事件添加处理程序的代码吗?
啊哈,典型的事件处理程序是什么看起来像?
Galen
这将是一种方法,最后有一个句柄条款,如:
Public Sub EventHandler(<适当签名>)句柄
ActiveXControl.EventName
End Sub
A VB6 ActiveX.exe raises an event which is seen by the VB6 App.
Same setup in VB2005. The event to be raised is in form frmSweep. As in VB6,
frmSweep is hidden when the events take place.
I know by actions on the screen and sounds in the speakers that VB2005 is
using the ActiveX.exe correctly.
However the events are never raised !!!
There are no Errors or Warnings shown after rebuilding the VB2005 App
Anyone have a clue as to why no events are raised?
Galen
Galen Somerville wrote:I know by actions on the screen and sounds in the speakers that VB2005 is
using the ActiveX.exe correctly.
However the events are never raised !!!
Can you show the code where you add handlers to the events?
"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...Galen Somerville wrote:I know by actions on the screen and sounds in the speakers that VB2005 is
using the ActiveX.exe correctly.
However the events are never raised !!!
Can you show the code where you add handlers to the events?
Aha, what does a typical event handler look like?
Galen
Galen Somerville wrote:"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...Galen Somerville wrote:I know by actions on the screen and sounds in the speakers that VB2005 is
using the ActiveX.exe correctly.
However the events are never raised !!!
Can you show the code where you add handlers to the events?
Aha, what does a typical event handler look like?
Galen
It would be a method that has a Handles clause at the end such as:
Public Sub EventHandler(<appropriate signature here>) Handles
ActiveXControl.EventName
End Sub
这篇关于ActiveX.exe和RaiseEvent的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!