By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

ActiveX Issue

P: n/a
Dan
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
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Dan wrote:
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?

Nov 21 '05 #2

P: n/a
Dan
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

"Chris Dunaway" wrote:
Dan wrote:
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?

Nov 21 '05 #3

P: n/a
I'm also facing the same issue...any solutions for this???

From http://www.developmentnow.com/g/38_2...iveX-Issue.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Feb 27 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.