G
Guest
Hi All,
I have been banging my head on this one for a while. I have a VB6 ActiveX
control wrapped inside a C# 2003 Forms Control.
When I use this C# control in a standalone windows form application, the
ActiveX control works correctly. However, if I try to use it inside a VBA
(Excel) form by dynamically adding it, I always get an
InvalidActiveXStateException.
Looking up the error, I get the ever-so-helpful description of "The
exception that is thrown when the ActiveX control is referenced while in an
invalid state." Oh, really?
I have been scouring the 'Net for any workarounds or explanations, but
haven't found anything that works.
This started as an annoyance, and now it's a personal obsession....
I'd really appreciate any help or pointers.
Thanks,
pagates
I have been banging my head on this one for a while. I have a VB6 ActiveX
control wrapped inside a C# 2003 Forms Control.
When I use this C# control in a standalone windows form application, the
ActiveX control works correctly. However, if I try to use it inside a VBA
(Excel) form by dynamically adding it, I always get an
InvalidActiveXStateException.
Looking up the error, I get the ever-so-helpful description of "The
exception that is thrown when the ActiveX control is referenced while in an
invalid state." Oh, really?
I have been scouring the 'Net for any workarounds or explanations, but
haven't found anything that works.
This started as an annoyance, and now it's a personal obsession....
I'd really appreciate any help or pointers.
Thanks,
pagates