"UserControl.Parent" call in VB6 ctrl fails when added a .Net Form

G

Guest

An ActiveX control has a call to "UserControl.Parent" which
fails when it is interopped and added to a .Net Form.

Is there any way to access to .Net parent control/it's interfaces
from VB6 ActiveX Control.

Thanks,
BalG
 
C

Cor Ligthert

Balg,

I never used it. I saw it an hour ago from a message from Herfried in the
newgroup language.vb

If you are using VS.NET (or VB.NET Standard), right-click the toolbox,
choose "Add/remove items..." -> "COM Controls" -> "Browse...". Select the
OCX component. VS.NET will create the interop assemblies automatically

I hope this helps a little bit?

Cor
 
G

Guest

Thanks but the question was, even after creating interop etc., if the ActiveX
control has a line like "UserControl.Parent.MyMethod()", it will fail when
the client is in .Net (and even if it contains MyMethod()).

It is not about interops but specifically about "UserControl.Parent" in VB6
when they are interopped.
 

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