peter.whalley Newbie
Joined: 24 May 2005 Posts: 1 Location: Brazil
|
Posted: May 24th, 2005 12:18 PM Post subject: Using ActiveX designed for VB6 in VBnet |
|
|
Using ActiveX designed for VB6 in VBnet
Hi I have some problems using an ActiveX designed for VB6 in a VBnet.
In VB6 it was working fine and I used to declare the values as follows:
Private Sub ActiveRex_OnIdFound(ByVal personId As Long, ByVal serialNumber As String)
However in VBnet it does not allow me to declare in this way and insists on declaring as follows:
Private Sub ActiveRex_OnIdFound(ByVal sender As Object, ByVal e As AxActiveRexC.IActiveRexCtlEvents_OnIdFoundEvent) Handles ActiveRex.OnIdFound
I have tried:
Private Sub ActiveRex_OnIdFound(ByVal sender As Object,ByVal personId As Long, ByVal serialNumber As String, ByVal e As AxActiveRexC.IActiveRexCtlEvents_OnIdFoundEvent) Handles ActiveRex.OnIdFound
but is reports the following error "ActiveRex_OnIdFound cannot handle OnIdFoundEvent becuase the do not have the same signature
The problem is that I need to abstract the values 'personId' and 'serialNumber' (as declared in Vb6 example), which are generated
automatically by the activeX component.
Does anyone know the answer please? |
|