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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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.
 
Back
Top