ActiveX Issue


G

Guest

Good Day,

I am having some issues in using a VB6 ActiveX control in a .NET project.
The ActiveX control is failing on the following line of code

If TypeOf UserControl.Extender.Parent Is IControlInterface

IControlInterface is defined in a VB6 ActiveX dll. It was imported into the
..NET project and the form hosting the control does implement it.

I can't seem to figure out how to solve this. I have been searchin the web
and trying everything I could think of with no luck. The only thing I have
stubled upon that may shed some light is a comment in a post that stated that
the "Extender" does not work for non VB containers. I assume that a VB.NET
container would still be a non VB container.

Any information anyone can share would be appreciated. Right now I am just
beating my head against my desk.

Thanks!

Dan
 
Ad

Advertisements

C

Chris Dunaway

Dan said:
The ActiveX control is failing on the following line of code

If TypeOf UserControl.Extender.Parent Is IControlInterface

When you say it "is failing" , what do you mean? Is there an
exception? Is it locking up? What?
 
G

Guest

Chris,

Thanks for your response.

By failing I mean that the statement in question evaluates to false. In
other words, the ActiveX control can't see the fact that it's parent
Implements the IControlInterface.

Dan
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top