G
Guest
Hi All,
I am having a problem getting a .NET control library to "play nice" with VB6.
This particular control wraps a number of other .NET controls in the same
project. It has a number of properties and methods (but no events). I am
using both the ProgIdAttribute and a GuidAttribute, declared before the
class. I also have enabled the "Register for COM Interop" option in the
Build properties.
It compiles correctly, and appears in the registry with the ProgID and Guid
(CLSID) that I specified.
If I try to use late binding to add it to a VB6 application, I always get a
' Runtime error 336: Component not correctly registered'.
I created another, much simpler control (no public properties or methods,
and not wrapping other controls), and specified the ProgIdAttribute. This
one late-binds with no errors, and is interactive (I have a button that
changes the color of a label).
Any ideas?
Thanks,
pagates
I am having a problem getting a .NET control library to "play nice" with VB6.
This particular control wraps a number of other .NET controls in the same
project. It has a number of properties and methods (but no events). I am
using both the ProgIdAttribute and a GuidAttribute, declared before the
class. I also have enabled the "Register for COM Interop" option in the
Build properties.
It compiles correctly, and appears in the registry with the ProgID and Guid
(CLSID) that I specified.
If I try to use late binding to add it to a VB6 application, I always get a
' Runtime error 336: Component not correctly registered'.
I created another, much simpler control (no public properties or methods,
and not wrapping other controls), and specified the ProgIdAttribute. This
one late-binds with no errors, and is interactive (I have a button that
changes the color of a label).
Any ideas?
Thanks,
pagates