Link to home
Start Free TrialLog in
Avatar of homerslmpson
homerslmpsonFlag for United States of America

asked on

Problem Using an Old 3rd Party ActiveX in VB.NET

We have an existing application written in ASP.NET.  It calls a ActiveX control that is written in VB6.  The VB6 ActiveX has a Window Form that has an old third party ActiveX control on it.  I have a problem stepping through the source code of the VB6 ActiveX control from the .NET program.  I believe one of the solution is to convert it from VB6 to VB.NET.  I have used the Upgrade Wizard in Visual Studio 2003 to convert the VB6 ActiveX to VB.NET.  But it cannot convert the event handlers that are supposed to handle the events coming from the third party ActiveX control.  I need help to get around with this problem.

The old third party AciveX control is called "Formula One 6.0" that provides a spreadsheet on a Window Form.  It used to be from TideStone.com.  But that company seems to be gone, and its web site no longer exists.  I need to find a way to work with it as best as I can.

Example 1, the event handler of the original VB6 ActiveX is this:

Private Sub F1Grid_StartEdit(EditString As String, Cancel As Integer)
   ...
End Sub

The VS 2003 Upgrade Wizard converts it into this:

Private Sub objF1Grid_StartEditEvent( _
   ByVal eventSender As System.Object, _
   ByVal eventArgs As AxTTF160.DF1Events_StartEditEvent) _
   Handles objF1Grid.StartEditEvent
   ...
End Sub

But it shows the following two errors:
1.  Type 'AxTTF160.DF1Events_StartEditEvent' is not defined.
2.  Event 'StartEditEvent' cannot be found.

Example 2, the event handler of the original VB6 ActiveX is this:

Private Sub objF1Grid_KeyDown(KeyCode As Integer, Shift As Integer)
   ...
End Sub

The VS 2003 Upgrade Wizard converts it into this:

Private Sub objF1Grid_KeyDown( _
   ByVal eventSender As System.Object, _
   ByVal eventArgs As System.Windows.Forms.KeyEventArgs) _
   Handles objF1Grid.KeyDown
   ...
End Sub

But it shows the following error:
-   Method 'objF1Grid_KeyDown' cannot handle Event 'KeyDown' because they do not have the same signature.

How can I fix these?  Please help.  Thanks.

Jay Chan
ASKER CERTIFIED SOLUTION
Avatar of homerslmpson
homerslmpson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of homerslmpson

ASKER

I found where the problem was.

No one told me anything anyway.