Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » .NET Knowledge Base

Post new topic   Reply to topic
Using ActiveX designed for VB6 in VBnet
View previous topic :: View next topic  
Author Message
peter.whalley
Newbie


Joined: 24 May 2005
Posts: 1
Location: Brazil

PostPosted: May 24th, 2005 12:18 PM    Post subject: Using ActiveX designed for VB6 in VBnet Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » .NET Knowledge Base All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic