Hello , I would like to know how to make this :
I have a library written in Visual Basic .Net that has some events for its
class , I am making an instance of this class in a Visual basic 6.0 Project
and I can call the methods from the object I instanced .
However I cannot raise the events from this library with my object , I
already made a sub in the vb 6.0 in the form :
Private Sub object_Event()
'Some code here
End Sub
But the subroutine is never called .
I declared the object with the word "WithEvents " in Vb 6.0 in this way :
Private WithEvents object As library.class
But when I try to compile the project a dialog appears :
"Object does not source Automation events"
What can I do ? ; I had tried the library from a VB NET project and I can
raise the events normally . I registered the library for COM programming in
This way :
regasm library.dll /tlb: library.tlb
Is there something I am missing ?
Thank You very much for your help .
I have a library written in Visual Basic .Net that has some events for its
class , I am making an instance of this class in a Visual basic 6.0 Project
and I can call the methods from the object I instanced .
However I cannot raise the events from this library with my object , I
already made a sub in the vb 6.0 in the form :
Private Sub object_Event()
'Some code here
End Sub
But the subroutine is never called .
I declared the object with the word "WithEvents " in Vb 6.0 in this way :
Private WithEvents object As library.class
But when I try to compile the project a dialog appears :
"Object does not source Automation events"
What can I do ? ; I had tried the library from a VB NET project and I can
raise the events normally . I registered the library for COM programming in
This way :
regasm library.dll /tlb: library.tlb
Is there something I am missing ?
Thank You very much for your help .