Hi,
I am trying to use a VB6 OCX file in .NET but when I try to create the object in .NET it says:
Private Sub New() is not accessible in this context because it is Private
The first thing I checked in the VB6 file was whether there was a Private Sub New, but there was no Sub New at all. I then tried adding a Sub New, but VB wouldnt accept the line.
Can anyone help me as to what to do?
Thanks,
Jamie
I am trying to use a VB6 OCX file in .NET but when I try to create the object in .NET it says:
Private Sub New() is not accessible in this context because it is Private
The first thing I checked in the VB6 file was whether there was a Private Sub New, but there was no Sub New at all. I then tried adding a Sub New, but VB wouldnt accept the line.
Can anyone help me as to what to do?
Thanks,
Jamie