Recently I've been trying to create an activeX control and use it in some vb.net code. After much struggle i created my control in vb6 and generated the ocx file. I've been trying to use it as shown in microsoft docs here but to no avail. On :
myActiveX = New MyActiveXComponent.MyClass()
i keep getting
MyActiveXComponent.MyClass.Private Sub New() is not accessible in this context because it is 'Private'
I can import it to toolbox and use that way but i would prefer not to, im using visual studio 2005. Also i have an ocx which to my supprise i can use both ways(not mine) so i suspect there's something wrong with mine, but i can't figure out what.

MyClass. Is this a class you have defined in your ocx? - tcarvinSub Newprivate? Perhaps it needs to bePublic? - Chris Dunaway