B
Bill
I have a VB6 ActiveX EXE app that generates events that I would like
to handle in a C# application. The events in the VB app are defined
like:
Public Event SometingHappened(what As String)
and raised like so:
Public Sub EventNotification(ByVal what As String)
RaiseEvent SometingHappened(what)
End Sub
in the C# app I create the VB ActiveX object and add the C#
eventhandler:
oClass = new Project1.Class1Class();
oClass.SometingHappened += new
Project1.__Class1_SometingHappenedEventHandler(class_event_handler);
and the eventhandler looks like:
private void class_event_handler(ref string what)
{
MessageBox.Show(what);
}
Everything builds OK in VS and when I run it and generate the event in
the VB ActiveX EXE nothing happens in the C# app. The event doesn't
seem to trigger the C# eventhandler. Any suggestions? or good examples
of trying to handle this situation?
Thanks Bill
to handle in a C# application. The events in the VB app are defined
like:
Public Event SometingHappened(what As String)
and raised like so:
Public Sub EventNotification(ByVal what As String)
RaiseEvent SometingHappened(what)
End Sub
in the C# app I create the VB ActiveX object and add the C#
eventhandler:
oClass = new Project1.Class1Class();
oClass.SometingHappened += new
Project1.__Class1_SometingHappenedEventHandler(class_event_handler);
and the eventhandler looks like:
private void class_event_handler(ref string what)
{
MessageBox.Show(what);
}
Everything builds OK in VS and when I run it and generate the event in
the VB ActiveX EXE nothing happens in the C# app. The event doesn't
seem to trigger the C# eventhandler. Any suggestions? or good examples
of trying to handle this situation?
Thanks Bill